MySQL – Access Denied On Grants
Interesting problem where we got access denied errors when trying to grant privileges on MySQL server:
|
1 2 |
mysql> grant all privileges on *.* to 'root'@'1.1.1.1' identified by 'asdasdfasdf' with grant option; ERROR 1045 (28000): Access denied for user 'root'@'127.0.0.1' (using password: YES) |
But we’re logged in as root so it should work. Turns out the problem is the mysql database needs to be upgraded. Try




