数据库连接问题

来源:3-7 数据库设计

weixin_慕勒4045057

2021-09-14

大目老师好:
图片描述
idea一直连不上mysql。提示如上图。数据库用户名密码都是正确的,url是jdbc:mysql://localhost:3306/user_center?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC。驱动是8.0.22,安装的mysql是8.0.26。而且用mybati代码生成插件一直报的是Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project user-center: CLIENT_PLUGIN_AUTH is required错误。望解答

写回答

1回答

大目

2021-09-15

这问题我也没有遇到过

对照这篇文章试试:

https://blog.csdn.net/weixin_42168713/article/details/116572457


另外,你图中的URL栏,那一堆URL,改成jdbc:mysql://localhost:3306/user_center试试,如果还是不行,点击图上的Troubleshooting看看。

0
2
大目
回复
weixin_慕勒4045057
不清楚。你装了多个数据库实例?
2021-09-22
共2条回复

Spring Cloud Alibaba微服务从入门到进阶

面向未来微服务:熟练掌握Spring Cloud Alibaba

3083 学习 · 1324 问题

查看课程