修改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)
1
2
然后就可以修改密码了
set password for root@localhost=password('root');
Query OK, 0 rows affected, 1 warning (0.00 sec)
1
2
mysql 其他操作
1、重启
systemctl restart mysqld
1
2、停止
systemctl stop mysqld
1
3、启动
systemctl start mysqld
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/pcw89126/article/details/118662195