Hi guys,
I have a question in mind that I would need the help on my setup for using localhost for my remote MySQL server.
I have setup 2 cPanel server and one server will be the master server for the web+DNS+email server and etc except MySQL. The slave server will be hosting for my mySQL server.
Then I would like to know on how to configure that we remain using the hostname localhost when connecting to our MySQL server without using the IP address of the slave MySQL server?
I have checked on several iptables rules that port forward all the 3306 connection to my slave server but it does not work.
Any ideas?
I have a question in mind that I would need the help on my setup for using localhost for my remote MySQL server.
I have setup 2 cPanel server and one server will be the master server for the web+DNS+email server and etc except MySQL. The slave server will be hosting for my mySQL server.
Then I would like to know on how to configure that we remain using the hostname localhost when connecting to our MySQL server without using the IP address of the slave MySQL server?
I have checked on several iptables rules that port forward all the 3306 connection to my slave server but it does not work.
Any ideas?