ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables 解决方法

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables 解决方法

当我们修改MySQL密码的时候,修改了配置文件/etc/my.cnf,并且也重启了mysql的服务,但是登录MySQL之后提示:

>ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement


这个时候只需要刷新一下权限即可:

flush privileges;


再次修改密码尝试:

>ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'
Query OK, 0 rows affected (0.01 sec)


修改成功!


  • 发表于 2022-12-12 14:49
  • 阅读 ( 1113 )
  • 分类:软件工具

0 条评论

请先 登录 后评论
安生水
安生水

328 篇文章

作家榜 »

  1. omicsgene 658 文章
  2. 安生水 328 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. xun 68 文章
  8. rzx 67 文章