Mysql8-----client does not support authentication

1.打开命令行小黑屏,进入MySQL的bin目录,然后输入mysql -u root -p,输入密码

 

2.输入语句

USE mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;

 

posted @ 2020-04-07 13:59  Emily1130  阅读(225)  评论(0编辑  收藏  举报