报错:Client does not support authentication protocol requested by server; consider upgrading MySQL cli
连接mysql数据库时报错:原因:mysql版本问题。mysql8之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password,所以可以需要改变mysql的加密规则1.打开cmd窗口,登录mysql;mysql-uroot-h127.0.0.1-P3306-p--u后面root为自己数据库的用户名--h后面为(mysq