错误情况

mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

解决办法:

首先查看mysql的命令

mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

其次修改root用户的密码 set password for 'root'@'localhost' = password('123456');

mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

最后退出mysql,用新的用户名和密码登入即可

 

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2022-02-20
猜你喜欢
  • 2021-12-04
  • 2021-08-01
  • 2022-02-18
  • 2021-12-25
  • 2021-07-17
  • 2021-10-25
相关资源
相似解决方案