意见箱
恒创运营部门将仔细参阅您的意见和建议,必要时将通过预留邮箱与您保持联络。感谢您的支持!
意见/建议
提交建议

云服务器MySQL修改密码报错怎么处理

来源:佚名 编辑:佚名
2024-07-25 13:10:45

香港服务器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


本网站发布或转载的文章均来自网络,其原创性以及文中表达的观点和判断不代表本网站。
上一篇: 云服务器解决apache-error.-log提示ah00094 下一篇: MySQL导入报错#1118:优化行大小超限