首页 > 数据库技术 > 详细

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法

时间:2021-05-13 13:35:41      阅读:11      评论:0      收藏:0      [点我收藏+]

mysql>mysql -u root -p

mysql>输入密码登录。

mysql>set password for root@localhost = password(‘新密码‘); 

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解决步骤如下:

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql> set password for root@localhost = password(‘新密码‘);
Query OK, 0 rows affected (0.00 sec)

mysql>quit //成功退出

The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法

原文:https://www.cnblogs.com/myibm/p/14763664.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!