mysql: access denied on information_schema

aranel picture aranel · Jun 2, 2014 · Viewed 15.8k times · Source

When i'm create new user or grant privileges to existing, i got this error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Grant privileges ok on all tables, except information_schema, on this table i got access denied error. How i can fix? Dump all databases, drop all databases, and then restore from dump?

Answer

Adam John picture Adam John · Nov 12, 2014

The MySQL documentation says:

... you can only read the contents of tables, not perform INSERT, UPDATE, or DELETE operations on them.