Zorreaux Posted July 4, 2009 Share Posted July 4, 2009 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 More sharing options...
playcraft Posted July 4, 2009 Share Posted July 4, 2009 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 More sharing options...
Zorreaux Posted July 4, 2009 Author Share Posted July 4, 2009 Thanks! It worked. Link to comment Share on other sites More sharing options...
Zorreaux Posted July 4, 2009 Author Share Posted July 4, 2009 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? Link to comment Share on other sites More sharing options...
playcraft Posted July 4, 2009 Share Posted July 4, 2009 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 More sharing options...
Zorreaux Posted July 4, 2009 Author Share Posted July 4, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.