Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin - Database Password Link lost


MindTattoos

Recommended Posts

Posted

Hi

I just had a problem with my host/database admin and had to change my SQL database password - I can still access the database using PHPmyAdmin but I have rather cleverly :-" got this error message when I try to log into oscommerce ADMIN for the site

 

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

Unable to connect to database server!

(I have blanked out my server details etc with *** for security)

 

I have opened the database.PHP file and line 19 etc looks like this:

 

if (USE_PCONNECT == 'true') {

$$link = mysql_pconnect($server, $username, $password);

} else {

$$link = mysql_connect($server, $username, $password);

}

 

So basically my question is: Where/what file do I have to edit to 'tell' oscommerce what the new password is so 'it' can open my database (which luckily is all but empty at the moment)

 

Thanks for taking the time. :thumbsup:

Posted
The password for the database is in the includes/configure.php file. You need to change it there to match the new one.

 

Jack

 

Thanks Jack... just did it while you were posting (found an old reply to similar problem)... I also had to do the admin/includes/configure.php

 

Appreciate the help though.

Chris

Archived

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

×
×
  • Create New...