问题:Client does not support authentication protocol。
解决:
WIN+R,cmd,然后输入mysql -u root -p,输入密码,
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘password’ PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’; #更新一下用户的密码
FLUSH PRIVILEGES; #刷新权限
问题:Initial client character set can be forced via the ‘characterEncoding’ property
解决:
url加上“characterEncoding=utf8”
问题:Access deny
解决:
检查generatorConfig.xml文件的jdbcConnection标签中的url、username、password等信息是否正确
注意:IDEA中生成文件的名字必须是generatorConfig.xml,否则找不到