MindTattoos Posted April 6, 2007 Posted April 6, 2007 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:
Jack_mcs Posted April 6, 2007 Posted April 6, 2007 The password for the database is in the includes/configure.php file. You need to change it there to match the new one. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
MindTattoos Posted April 6, 2007 Author Posted April 6, 2007 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.