mysql-front不支持MySQL8,【MySQL】MySQL-front等客户端连接MySQL_8.0等失败的解决办法

ALTER USER 'root'@'localhost' IDENTIFIED BY '新的密码' PASSWORD EXPIRE NEVER;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新的密码';

FLUSH PRIVILEGES;

设置后,重启mysql服务。

或者,在下列文件末尾添加一行:

default_authentication_plugin=mysql_native_password

mysql-front不支持MySQL8,【MySQL】MySQL-front等客户端连接MySQL_8.0等失败的解决办法_第1张图片

然后,重启mysql服务。

原因是:默认的密码加密方式是:caching_sha2_password,而现在很多客户端工具还不支持这种加密认证方式,连接测试的时候就会报错:client does not support  authentication protocol requested by server; consider upgrading MySQL client,这里的错误信息就是不支持身份认证方式,因此,去my.ini里面在[mysqld]下面加上这句话即可。

标签:8.0,MySQL,USER,mysql,front,password,ALTER,native

来源: https://www.cnblogs.com/BH8ANK/p/10908736.html

你可能感兴趣的:(mysql-front不支持MySQL8,【MySQL】MySQL-front等客户端连接MySQL_8.0等失败的解决办法)