修改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 其他操作
1、重启

systemctl restart mysqld

2、停止

systemctl stop mysqld

3、启动

systemctl start mysqld
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐