• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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