SQLyog连接数据库报plugin caching
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
问题描述
问题分析
因为MySQL新版默认使用caching_sha2_password作为身份验证的插件而旧版本使用的是mysql_native_password。当出现plugin caching_sha2_password could not be loaded报错我们更换为旧版本
如何解决
先使用cmd命令登录MySQL出现mysql>
use mysql;
修改root用户的身份验证插件
修改本地连接
alter user root@localhost identified with mysql_native_password by '123456';
修改远程连接
alter user root@'%' identified with mysql_native_password by '123456';
最后