Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to connect to database server!


abselect

Recommended Posts

Posted

Does any body know how to enable mysql for connection

 

I am using mysql databses for my forum and they work well

 

But I have never made a connetion to the server before using the following code.

 

 

// define our database connection

define('DB_SERVER', '213.239.46.144');

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'passwd');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 1);

Posted

Hi: Im also a newbie... Just installed 1 hour ago, but this worked for me.

 

DB_SERVER = "localhost" (including the " ")

 

change the ' ' for " " on all others..

Archived

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

×
×
  • Create New...