Error 1045 - Access denied in PHP5 and MySQL
I am having problem with PHP5 and MySQL server upgradation. I recently installed and was testing to see everything went correct but I got the error code 1045 on my phpMyAdmin folder and the message describes "Access denied for user: 'root'@'localhost'". I am not getting the opening login screen on phpMyAdmin. What is wrong?
Re: Error 1045 - Access denied in PHP5 and MySQL
I think you need to reset your root password or create a new login with new username and password. Open mysql command line, then try to log in using your new password or NO password. If you are unable to get in, then follow the instructions specified in the manual for resetting your root password. But is are successful to login then refer your manual for creating a new username and password with admin rights.
Re: Error 1045 - Access denied in PHP5 and MySQL
Have you entered the root password on your phpMyAdmin config file? I would recommend you to add the mysql root password in the phpMyAdmin config file. Search this file in the phpmyadmin folder and is called as "config.inc.php". Simply type the below statement in the file: "$cfg['Servers'][$i]['password'] = 'Password';"
Re: Error 1045 - Access denied in PHP5 and MySQL
I tried that option fellah but the same problem persists again! Can I do that somewhere else in the phpMyAdmin other than the config.inc.php? I am asking so because when I tried that I get the message saying the problem may arise due to missing configuration file. I think I have to recreate it once again by using setting script.