一个专业运
维技术分享!

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

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('你的密码');


微信扫描下方的二维码阅读本文

赞(0) 打赏
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。小柳实验室 » 解决MySQL修改密码:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option

相关推荐

  • 暂无文章

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏