I am trying to setup a site to use a database from another server. The setup is as follows:
Server 1) contains the database I want to use
Server 2) contains the wordpress script
I have added the IP from Server 2 in cPanel under "Add Access Host" on Server 1
I have configured the script on Server 2 like so:
I have tried all kinds of combos of usernames (including creating a special DB user as "s1cpaneluser_s1DBuser"... but figure the best option is to use server 1's cpanel user/pass)... but it all comes up (on server 2's domain):
"Error establishing a database connection"
I also have tried adding the domain and IP of server 2 in server 1's WHM --> Additional MySQL Access Hosts and the server's phpMyAdmin is showing the remote host in its "User Overview" section.
What am I doing wrong... or what could be wrong here ?
thanks,
Server 1) contains the database I want to use
Server 2) contains the wordpress script
I have added the IP from Server 2 in cPanel under "Add Access Host" on Server 1
I have configured the script on Server 2 like so:
Code:
// ** MySQL settings ** //
define('DB_NAME', 'server1user_wordpress');
define('DB_USER', 'server1cpaneluser');
define('DB_PASSWORD', 'server1cpanelpass');
define('DB_HOST', 'server1.ip');
"Error establishing a database connection"
I also have tried adding the domain and IP of server 2 in server 1's WHM --> Additional MySQL Access Hosts and the server's phpMyAdmin is showing the remote host in its "User Overview" section.
What am I doing wrong... or what could be wrong here ?
thanks,