输入username和password之后点击连接测试,出现报错
报错信息为:
mysql Client does not support authentication protocol requested by server; consider upgrading MySQL
解决方法:
win+R打开cmd,输入mysql -u root -p回车输入密码
1、输入
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
2、输入
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的数据库密码';
3、输入
FLUSH PRIVILEGES;
再次测试连接,连接成功
可以使用