新安装的mysql 数据库 mysql -u root -p 登录进去之后,执行use sql;show databases;等指令提示错误
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st
使用
alter user ‘root’@‘localhost’ identified by ‘XXXX’;
更换密码,其中XXXX为自己要重设的密码,要字母大小写带特殊符号的密码,不然不会通过。
修改通过之后
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this st

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2021-06-20
  • 2022-02-23
  • 2021-05-25
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案