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