【发布时间】:2014-07-22 06:22:03
【问题描述】:
当我创建新用户或授予现有用户权限时,出现此错误:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
在除 information_schema 之外的所有表上授予权限正常,在此表上我收到拒绝访问错误。 我该如何解决?转储所有数据库,删除所有数据库,然后从转储中恢复?
【问题讨论】:
-
你没有
FLUSH PRIVILEGES;。或者输入错误的权限。 -
mysql> 使用授予选项将 . 上的所有权限授予 'root'@'localhost'; ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)查询正常,0 行受影响(0.00 秒)