-5ff6719229848f17.jpg

默认>=8.0.4的MySQL使用的default-authentication-plugin=caching_sha2_password.
修改my.cnf中的配置来使用与老版本兼容的密码插件, 解决客户端与MySQL版本不兼容问题.
加一行default-authentication-plugin=mysql_native_password,重启mysql
若以前已创建用户需要修改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code