I just can't login to PhpMyAdmin anymore, it says bad logins. PHP works perfectly. Please help. Thank you.
2002 Cannot log in to the MySQL server
Language
Log in
Username:
Password:
Connection for controluser as defined in your configuration failed.
It could be that your phpmyadmin configuration was somewhat "customised" and that it's no longer compatible with the way your MySQL server's configured. This should normally by handled properly when upgrading both.
If you don't understand your phpmyadmin configuration or didn't set it up yourself, some issues with phpmyadmin's configuration in Debian/Ubuntu can be overcome by purging and reinstalling the phpmyadmin package, or perhaps simply with
sudo dpkg-reconfigure phpmyadmin
.You may reconfigure phpmyadmin, and reset MySQL password.
sudo dpkg-reconfigure phpmyadmin
sudo dpkg-reconfigure mysql-server-5.5
Wish it helps!
Have a nice day!
If you upgraded mysql-server, you are probably suffering a broken package that has recently release in the precise repo.
In my case, resetting new password without white space characters worked for both phpmyadmin and mysql on Ubuntu 14.04 LTS.
It seems phpmyadmin could not use white space character in their password field and feels like dejavu on early days of Ubuntu 12.04 LTS which also could not log in to phpmyadmin due to having white space characters on mysql password. Do note that mysql is capable having white space characters in its password, though. :D
The problem was that the /etc/mysql/my.cnf was writable by another user than 'root'. So during the installation of mysql, the file was ignored and the installation didn't worked well.
A simple :
Did the job very well after all.
Aptitude is, in my opinion, much better than apt-get. It manage the dependencies way better than the other one and you have less chances to have problems.