赞
踩
1、数据库用户的加密方式里已经是mysql_native_password,但远程链接时依旧提示
Authentication to host"11.xx.x.xxx for user’ejdwhwdas’usingmethod caching_sha2-password’failed with message: Readingfrom the stream has failed
1、只执行了alter user ‘root’@’指定IP’ identified with mysql_native_password by ‘1234’;
完整的步骤:
1、ALTER USER ‘root’@‘指定IP’ IDENTIFIED BY ‘password’ PASSWORD EXPIRE NEVER; #修改加密规则
2、ALTER USER ‘root’@‘指定IP’ IDENTIFIED WITH mysql_native_password BY ‘1234’; #更新一下用户的密码
3、FLUSH PRIVILEGES; #刷新权限
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。