关于数据库8.0 之后的版本改密码出现ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables
今天操作数据库时忘记了密码,这是个很烦的事。但是在修改密码的时候出现了这个错误:
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
这是因为我在修改密码时,进行了配置,在mysql中的my.cnf 文件中配置了跳过密码验证的步骤。但是,这个错误正是因为你跳过了密码验证所报的错,就造成了死循环!
解决办法:
刷新一下权限!
首先执行以下命令:
flush p
原创
2020-06-19 10:33:53 ·
1857 阅读 ·
0 评论