Navicat连接MySQL 8出现2059 - authentication plugin 'caching_sha2_password'的解决办法

进入MySQL控制台,执行如下命令:

use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

这里的localhost对应本地,如果是远程访问 mysql的话,需要将localhost改成%;
password是root的密码,使用时也要进行对应修改。

猜你喜欢

转载自www.cnblogs.com/zifeiy/p/9137998.html