修改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
本文介绍了在遇到MySQL修改密码时报错1290时的解决方案,步骤包括使用flush privileges刷新权限配置,然后通过set password语句设置新密码。此外,还列举了MySQL的启动、停止和重启操作命令。
1432

被折叠的 条评论
为什么被折叠?



