mysql更改密碼報錯
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'mysql' WITH GRANT OPTION;
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
執(zhí)行刷新語句:flush privileges;
忘記mysql 密碼
到/etc/my.cfg里 加入skip-grant-tables=1, 然后重啟服務(wù), systemctl restart mysqld
停止firewall
systemctl stop firewalld.service