mysql Client does not support authentication protocol requested by server; consider upgrading MySQL

登入mysql

> mysql -u root -p
#接着输入你的密码
mysql> use mysql;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'r
oot';
Query OK, 0 rows affected (0.40 sec)

mysql> SELECT plugin FROM mysql.user WHERE User = 'root';
+-----------------------+
| plugin                |
+-----------------------+
| mysql_native_password |
+-----------------------+
1 row in set (0.00 sec)

猜你喜欢

转载自blog.csdn.net/GeekLeee/article/details/80925500