首页 > 技术文章 > 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)

zyt-bg 2019-01-31 20:01 原文

错误情况

解决办法:

首先查看mysql的命令

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

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

 

推荐阅读