安装教程:MySQL8.0安装教程
问题:
之前安装8.0,发现与5.7有很多地方的差异,数据库方言、时区等等。今天又遇另一坑:
SQLyog连接数据库报错:plugin caching_sha2_password could not be loaded
记得安装 mysql8.0时,当初设置认证方法步骤,选择了官方推荐的第一种
解决:
修改加密规则
如图:
step1
#修改加密规则
alter user 'root'@'localhost' identified by 'password' password expire never;
step2
#更新用户密码
alter user 'root'@'localhost' identified with mysql_native_password by 'password';
step3
#刷新权限
flush privileges;
step4
#重置密码
alter user 'root'@'localhost' identified by '123456';