解決MySQL修改密碼:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option


code

vi /etc/my.cnf

1.找不到初始密碼可以在my.ini中[mysqld] 添加:

skip-grant-tables

2.修改MySQL數據庫配置文件無密碼登錄后,修改密碼報錯:

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

3.先執行:

flush privileges;

4.再執行修改密碼命令,可以了:

set password for root@localhost=password('你的密碼');











免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM