• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

connecting to a remote DB

N

nitzan_karni

Guest
I am trying to connect to a remote database.
I have set the databse server in the call mysql_connect("localhost", USER, PASSWRD); from localhost to the name of the remote database server.
However, when I run the site it appear that apache@localhost is trying to connect to a local database…
How can I connect to a remote databse?
 
This really isn't a plesk question... you might try another forum.

for PHP and mysql questions like this, I usually post on phpfreaks.com

Sorry that I don't know the answer to your question.
 
Back
Top