The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
在修改mysql数据库密码的时候出现了这个错误:TheMySQLserverisrunningwiththe--skip-grant-tablesoptionsoitcannotexecutethisstatement。解决方法:先刷新一下权限表。mysql>flush privileges;Query OK, 0 rows affected (0.01 sec)#把在所有数据库的所有表的所
在修改mysql数据库密码的时候出现了这个错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement。
解决方法:
先刷新一下权限表。
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
# 把在所有数据库的所有表的所有权限赋值给位于所有IP地址的root用户。
mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123';
Query OK, 0 rows affected (0.00 sec)
出现以上提示就表示数据库密码修改成功。
还需要注意一点修改密码后远程连接也会重置,所以还需要设置远程连接。(是数据库只允许localhost或127.0.0.1访问,不允许远程访问)
参考博客:https://blog.csdn.net/weixin_40873693/article/details/116459849
参考:https://blog.csdn.net/weixin_33860147/article/details/93749400
更多推荐
所有评论(0)