Hey.
Question on database management systems. I do not understand how mysql works. There is a client program - it is a program that is USED. There is a server program - this is a program that PROVIDES. Here is a picture of how the DBMS works in conjunction with PHP. 
It can be seen from the picture, the browser sends a GET request to the web server - “Give me the script.php document, hold another parameter”. The web server finds this document in the site folder and gives it to the PHP interpreter for processing with the words "Here's a document for you, work it out + hold the server variables that I pulled from the browser's request header ( $_GET, $_SERVER )". The PHP interpreter program finds the REQUEST in the <?php ...?> Script and sends it to the DBMS, which climbs into a specific database folder, takes some data from there and SELLS it back to the PHP interpreter. It turns out that the PHP interpreter is a client. The figure shows that the PHP interpreter and the mysql server are on the same computer - the server. Can they ( PHP interpreter and mysql server) be on different computers? If so, according to what protocol do they "communicate" with each other?
For example, a browser and a web server communicate directly over HTTP . The browser makes a request that looks like the " HTTP header" + "data body (may be empty if the request is sent using the GET method)", the transfer process takes place (I omit the moment exactly how the data is transmitted), and the web server receives it in the same the form. Then the web server responds to the browser.
What program besides the PHP interpreter can be a client of the mysql server?
If I work with mysql DBMS on the command line, then to work you need to go into the mysql monitor program - mysql.exe -uroot -p is entered. Why is login and password entered when starting mysql monitor ? You can also enter a host ( \h ). Is it possible to work with the mysql server when the client is on one computer and the mysql server is on another computer?
How do we catch a mystery log header with the mysql protocol? I want to see how data is exchanged