I'm trying to create a diagram for some architecture I'm working on. While doing so I was wondering what type of communication is actually happening between PHP and a MySQL Database. I've used it countless times but never really wondered about it. How does the PHP send its queries if the MySQL Database is on another Server. The PHP Layer establishes the connection but what is happening when it actually queries the Database? Does it send the Query as a plain text? And what does it actually receive, also plain text?
best regards