安装Mysql 后,命令符无法登陆。You must reset your password using ALTER USER statement before executing this statement.

①使用临时密码登录后,需及时更改ROOT密码。

临时密码在解压文件中,在mysql-8.0.18-winx64\data文件侠下,AUTOBVT-FL85VRK.err文件打开。

A temporary password is generated for [email protected]: 临时密码

 

Mysql密码登陆

Mysql密码登陆

②无法使用mysql,提示:You must reset your password using ALTER USER statement before executing this statement.

Mysql密码登陆

③使用:alter user user() identified by "新密码"; 

Mysql密码登陆

④使用新设置的密码登陆成功。

Mysql密码登陆

 

欢迎交流,共同学习进步。

相关文章:

  • 2021-08-03
  • 2021-08-13
  • 2021-11-21
  • 2022-02-19
  • 2021-12-26
  • 2022-02-20
  • 2022-01-08
  • 2021-06-02
猜你喜欢
  • 2022-01-31
  • 2022-01-13
  • 2021-10-03
  • 2021-10-10
  • 2021-10-07
  • 2021-12-24
  • 2021-11-28
相关资源
相似解决方案