Created
June 14, 2018 14:00
-
-
Save haujoe/98645f4a72ad431f9ec91b91915ed2da to your computer and use it in GitHub Desktop.
mysql 8.0.11 :第三方客户端连接 caching-sha2-password 问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mysql 8.0.11 :第三方客户端连接 caching-sha2-password 问题 | |
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; # 修改加密规则 | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; # 更新用户的密码 | |
FLUSH PRIVILEGES; # 刷新权限 | |
ALTER USER 'root'@'localhost' IDENTIFIED BY '1234567890'; # 重置密码 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment