首页 > 数据库技术 > 详细

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

时间:2021-01-09 00:42:14      阅读:42      评论:0      收藏:0      [点我收藏+]

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










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

原文:https://www.cnblogs.com/sea-stream/p/14253700.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!