解决MySQL修改密码:ERROR 1290 (HY000)
·
修改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
更多推荐
已为社区贡献1条内容
所有评论(0)