出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password。
解决步骤如下:
(1)管理员权限运行命令提示符,登录MySQL
mysql -u root -p
?
?
(2)修改账户密码加密规则并更新用户密码
? ?ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;?
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';? ??
(3)刷新权限并重置密码
FLUSH PRIVILEGES;? ?#刷新权限?
上面两步对应的截图
单独重置密码命令:alter user 'root'@'localhost' identified by '111111';
现在再次用插件连接MySQL数据库就会发现可以连接成功了
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…