how to grant all revoked privileges for admin

i have accidentally revoked all privileges when i was logged in as admin in mysql. and now it says access denied for all operations. how to reset this?

for example, grant all privileges on . to 'root'@'localhost' identified by 'VVVV'; ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

链接地址: http://www.djcxy.com/p/69274.html

上一篇: 创建视图命令

下一篇: 如何授予管理员的所有撤销权限