关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

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

发布时间:2024/7/24 14:38:31
香港云服务器

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