帮助中心 >  技术知识库 >  数据库 >  相关技术支持 >  MySQL修改密码报错:ERROR 1290 (HY000) The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

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

2023-12-22 14:46:40 38

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

 

修改MySQL数据库密码报1290 错误 如下:

alter user ‘root’@‘localhost’ identified by ‘root’;

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

需要刷新下配置

flush privileges;

Query OK, 0 rows affected (0.00 sec)

然后就可以修改密码了

set password for root@localhost=password('root');

Query OK, 0 rows affected, 1 warning (0.00 sec)

修改密码后重启mysql

systemctl restart mysqld


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: