mysql Client does not support authentication protocol requested by server

_mysql_exceptions.OperationalError: (1251, 'Client does not support authentication protocol requested by server; consider upgrading MySQL client')

更改加密方式:

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

更改密码:该例子中 123为新密码

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';

刷新:

mysql> FLUSH PRIVILEGES;

猜你喜欢

转载自blog.csdn.net/qq_29730101/article/details/81387331
今日推荐