异常提示:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:Client does not supClient does not support authentication protocol requested by server
出现场景:mybatis连接mysql8.0
解决方法:
database:mysql
table:user
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'
flush privileges;
以上。