查看日志,发现是由于validate_password=off配置导致
mysql5.7 在[mysqld]添加skip-grant-tables之后 服务启动失败

删除该配置,或者注释,重启成功,然后修改root的密码。
注意:mysql5.7的user表中的password字段已经改成了authentication_string 字段了。

这时候,需要输入的命令是update user set authentication_string = password(“Szfore_68638”) where user=“root” ;

修改好之后不要忘记注释掉skip-grant-tables,并重启。

参考 https://www.cnblogs.com/lfdestiny/articles/9742095.html

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2021-10-15
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
猜你喜欢
  • 2021-12-30
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案