Until now, I have always built php applications and their mysql database on the same physical server. I am now building an app that will have multiple web servers with the php application on it, and they will coordinate data transfer with a single mysql server on another physical server.
Basically, I'll have 5 to 10 web servers, and a single mysql server. They will all be on a closed private network on the same subnet.
My question - does the mysql_connect() function automatically encrypt the user password used to actually connect to the remote database? There is slim chance of this happening, but it is possible... I want to make sure a local user (disgruntled employee for example) to sniff the traffic between the web servers and the mysql database. The actual data isn't of so much concern, but if an employee got ahold of the actual password used to log into the mysql server, they could then begin running queries on the mysql server - updating data, deleting data, discovering table structures of a "confidential" application, and so on.
Without getting into SSL and security certificates, is there a way to secure this? Note, I am not talking about encrypting a user name used to log into the php application, I'm talking about the actual mysql user that the web app runs as to modify data on the mysql database.
Thanks!