环境安装2023-06-30

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

执行刷新语句:flush privileges;

忘记mysql 密码
到/etc/my.cfg里 加入skip-grant-tables=1, 然后重启服务, systemctl restart mysqld

停止firewall
systemctl stop firewalld.service

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容