Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

connect to db in another server?


Recommended Posts

Posted

Hi, I am relocating my website and I need to have two identical website running on two servers during dns propagate. on server A I modified the configure.php file so it connects to db on server B, here is my configuration file,

 

// define our database connection

define('DB_SERVER', '67.18.68.134'); // this ip is my server B ip.

define('DB_SERVER_USERNAME', 'usrname');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'dbname');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

 

but here is what I get

 

Warning: mysql_connect(): Host 'quela.farciert.net' is not allowed to connect to this MySQL server in /home/szscoot/public_html/includes/functions/database.php on line 19

Unable to connect to database server!

 

any idea?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...