How to connect to a mysql database on a different domain/server? I'm making a web page that distributes the load by using different computers for different tasks, i.e. picture server, mail server, web server, posts server, and form server.
The mysql server is on a different ip but still in the same network.
The mail server is trying to connect to the mysql server but mysql isn't connecting to it.
The mail server is on 192.168.1.2 and the mysql server is on 192.168.1.3
I added another user in mysql: user@192.168.1.2
and the mail server is using mysql_connect ("192.168.1.3", "user", "pass");
so that the mail server could connect.
Is this correct? |