解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误...

项目中连接数据库出现 ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误..._第1张图片

解决方案

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

解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误..._第2张图片

2. ALTER USER 'root'@'localhost' IDENTIFIED WITHmysql_native_password BY 'password'; #更新一下用户的密码

解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误..._第3张图片

3.FLUSH PRIVILEGES; #刷新权限

1709616-20190615161231985-1727077776.png

转载于:https://www.cnblogs.com/korea/p/11027914.html

你可能感兴趣的:(解决Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误...)