mdoo
04-05-2002, 01:01 PM
I'm finally wading into the Ecommerce thing and have decided to try OScommerce 2.1. I'm also new to databases. I'm getting "Unable to connect to database server". Here's a section in the config file in OScomm:
// define our database connection
define('DB_SERVER', 'exchange');
define('DB_SERVER_USERNAME', 'myusername');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'markdoo_testcartdb');
define('USE_PCONNECT', 1);
I set up a MySql and created a new user and password and entered that info as well as the database name. I don't know what "DB_SERVER" or "USE_PCONNECT" is. What should I have there?
Is there a length limit on usernames as it appears to have cut mine off (it added "markdoo_" to the username I input and then dropped the last two letters. Or so it appears.)
Mark-
// define our database connection
define('DB_SERVER', 'exchange');
define('DB_SERVER_USERNAME', 'myusername');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'markdoo_testcartdb');
define('USE_PCONNECT', 1);
I set up a MySql and created a new user and password and entered that info as well as the database name. I don't know what "DB_SERVER" or "USE_PCONNECT" is. What should I have there?
Is there a length limit on usernames as it appears to have cut mine off (it added "markdoo_" to the username I input and then dropped the last two letters. Or so it appears.)
Mark-