1521 - Client does not support authentication protocol requested by server

原因:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password

解决办法:

1、在终端输入:mysql -u -root -p

1521 - Client does not support authentication protocol requested by server

2、输入密码回车

1521 - Client does not support authentication protocol requested by server

3、执行:ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';

1521 - Client does not support authentication protocol requested by server

4、执行刷新 :FLUSH PRIVILEGES;

5、测试连接

1521 - Client does not support authentication protocol requested by server

 

 

 

相关文章: