26
2023
04
14:35:34

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



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

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('新密码');      //这句好像不行啊

mysql> ALTER USER 'root' IDENTIFIED WITH MYSQL_NATIVE_PASSWORD BY '新密码';

Query OK, 0 rows affected (0.00 sec)

mysql>quit //成功退出


本文链接:https://www.hqyman.cn/post/3998.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: