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


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM