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

时间:2021-05-13 13:35:41   收藏:0   阅读:11

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 //成功退出

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!