Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I correct "Warning: mysql_connect error message"?


Zorreaux

Recommended Posts

I deleted something I shouldn't have and had to reinstall osCommerce. Now I'm getting this error message.

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: YES) in /public_html/includes/functions/database.php on line 19

Unable to connect to database server!

 

How do I fix this?

Link to comment
Share on other sites

I deleted something I shouldn't have and had to reinstall osCommerce. Now I'm getting this error message.

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: YES) in /public_html/includes/functions/database.php on line 19

Unable to connect to database server!

 

How do I fix this?

Make sure you have the correct DB credentials listed in the configure.php file.

Link to comment
Share on other sites

Well, it worked for the site, but now I'm getting the same message when I try to go to my /admin area. Where is that password controlled?

There is a separate configure.php file for the admin side.

Link to comment
Share on other sites

I found this area, but don't know what goes where. Where do I plug in what? I tried my password and now I'm getting a "Server cannot be found" error.

 

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'username__osc1');

define('DB_SERVER_PASSWORD','?');

define('DB_DATABASE', 'username__osc1'');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...