I have an installation of MySQL 5.5 that is causing some privilege grief.
1: The server was setup and running fine since Dec 2015.
2: The server has 3 websites on it… Each site has it’s own unique user/pass to connect to MySQL
3: Just before the Christmas holidays (2016)… the primary site could not connect to the DB
4: When trying to log in as ROOT in PHPMyAdmin & the console, it also could not connect.
5: The two other sites on the server could connect… and were running fine.
TO SOLVE THIS… I DID THE FOLLOWING
1: I stopped the MySQL server
2: I created an “init” file to reset the root password (to the same it was set to)
3: I ran the mysql command… utilizing the init file.
4: I started the MySQL server
Once I did that, all privileges worked again. The primary site could connect with it’s own user/pass and I was able to log into PHPMyAdmin with the root user/pass combination.
Today… the exact same problem occurred… the same solution worked.
Has anybody encountered anything like this? The primary site and root are both affected, yet I only have to reset the root password for both to start working again. The other two user/pass combination are not affected.