MySQL报错:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

报错问题:

 

 解决办法

1.刷新权限

mysql> flush privileges;

 

 

2.给root用户所有权限

mysql> grant all on cactidb.* to root@'localhost' identified by '123';

 

 

3.退出mysql环境

mysql> exit

 

4.重新登录便可

 

posted @ 2022-07-06 15:49  Mr_胡萝卜须  阅读(239)  评论(0编辑  收藏  举报