martijn24 Posted October 6, 2005 Posted October 6, 2005 Hi all.... my website worked great for 4 months or so..... a efw days ago i tried enter the webshop and admin.. i got an ERROR. Warning: mysql_connect(): Access denied for user: 'dvdp@localhost' (Using password: YES) in /var/www/html/catalog/includes/functions/database.php on line 19 Unable to connect to database server! I tried to locate the ERROR as it says it's got something to do with my database.php at line 19... but i can't seem to find anything wrong there? this is what there is now from line 16 till 20... if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } can any 1 of you guys or girls tell me what the *^%&$# is wrong with my site?? as i didn't change any info on it for the last month or so???
♥Vger Posted October 6, 2005 Posted October 6, 2005 Three possibilities: 1. Your MySQL User Name is wrong in your configure.php files. 2. Your MySQL Password is wrong. 3. More likely than 1 or 2 as your site was previously working - your server does not use 'localhost' but uses '127.0.0.1' instead. This is the ip address of localhost and is used by the RedHat Enterprise Linux operating system to define the database server. 90% of the time you can get away with using localhost, but to have total reliability you need to use 127.0.0.1 in your configure.php files for the db_server address. Vger
martijn24 Posted October 9, 2005 Author Posted October 9, 2005 Three possibilities: 1. Your MySQL User Name is wrong in your configure.php files. 2. Your MySQL Password is wrong. 3. More likely than 1 or 2 as your site was previously working - your server does not use 'localhost' but uses '127.0.0.1' instead. This is the ip address of localhost and is used by the RedHat Enterprise Linux operating system to define the database server. 90% of the time you can get away with using localhost, but to have total reliability you need to use 127.0.0.1 in your configure.php files for the db_server address. Vger WOOT WOOT..... :thumbsup: :thumbsup: .... thx m8... you were right it was my password... still i am not sure how this could happen as the site worked fine untill a few days ago... (erm.. looking back from my first post date. 6oct LOL).... so it was 2.....???? mmmm WEIRD??? but still thx for helpin out....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.