mysql8新版本发布,安装后出现2059错误,原因为安装时选择了强加密规则caching_sha2_password,与之前的mysql5.7的mysql_native_password规则不同,navicate驱动目前不支持新加密规则
问题的解决:
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1.cmd输入命令:mysql -u root -p 2.分别执行命令:use mysql; select user,plugin from user where user='root'; 3.分别执行命令: alter user 'root'@'localhost' identified by 'root' password expire never; alter user 'root'@'localhost' identified with mysql_native_password by 'root'; flush privileges; 4.正常链接数据库 |