`
lizaochengwen
  • 浏览: 643899 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ERROR 1290:...skip-grant-tables option so it cannot execute this statement

 
阅读更多
今天接手一台mysql,root@localhost账户进入,发现授权时报错如下:
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'yao'
最终发现该root在初始授权时没有加上with grant option

解决办法:
配置文件中增加skip-grant-tables
重启mysql后重新登录授权报错:
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
这个错误执行flush privileges后再次授权就可以了
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics