Q:idea21.2.2,maven3.8.5 建maven项目后报错:role: org.apache.maven.model.validation.ModelValidator
A:idea和maven版本不匹配,将maven换成低点的版本 maven换成了3.8.2可以正常使用
Q:安装MySQL后使用Navicat报错: Client does not support authentication protocol requested by server; consider upgrading MySQL client.
A:管理员身份运行cmd窗口,通过cmd命令进入mysql安装目录的bin目录,cmd命令进入mysql(mysql -uroot -p) 再依次执行下面两条指令alter user 'root'@'localhost' identified with mysql_native_password by '123456'; flush privileges;
Q:jdbc连接MySQL8
A:以下两处有变com.mysql.cj.jdbc.Driver //以前:com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/test?useSSL=false&serverTimezone=GMT%2B8&characterEncoding=UTF-8 //需要指定时区serverTimezone
浙公网安备 33010602011771号