Forums / Install & configuration / MySQL on a different server?

MySQL on a different server?

Author Message

Mark Marsiglio

Thursday 30 October 2003 6:49:29 pm

Is it possible to locate the MySQL database on a different server than the Apache/PHP/eZ publish installation? The hosting provider on our project would like to keep the MySQL database on a server behind the firewall with only the 3306 port open.

The main server (windows 2000 or 2003 server) would run the Apache and need to connect to the database remotely.

It seems that this would be possible by modifying the [Database Settings] in the site.ini.append to point the server to a remote IP address instead of localhost, but has anyone tried this to confirm that it works?

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Tore Skobba

Friday 31 October 2003 7:04:08 am

Hi

Yes I have done that. I work on one site commited into CVS. However, because more people might work on it in the future I have a centralised database all checked out sites are conneting to. Works fine. However, remember to add your username with the IP to the Mysql user tables (i.e. root connecting from other than localhost need another entry).

Typically change server from localhost to IP. However, I am using the standard port. So you might have to write IP adress:3306

Cheers.