Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库连接不上 #3

Open
DDDDorwin opened this issue Sep 2, 2021 · 3 comments
Open

数据库连接不上 #3

DDDDorwin opened this issue Sep 2, 2021 · 3 comments

Comments

@DDDDorwin
Copy link

大佬可以回忆一下这个项目jdbc的版本吗,检查了好几遍数据库还是连接不上,怀疑是驱动问题。

(P$C TBFFCDMQ PT_C)N9U3

@sdnuliu
Copy link

sdnuliu commented Feb 10, 2022

你的数据库版本过高了吧,需要修改mysql-connector-java 的版本

@clobob
Copy link

clobob commented Apr 19, 2022

@DDDDorwin mysql5.7版本连接正常

@Wodaifan
Copy link

我的mysql是5.7但是也是出错了,后来我这样改好像就没问题了
改pom

mysql
mysql-connector-java
8.0.26

改驱动和jdbc的url

jdbc.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/bookstore?serverTimezone=UTC&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants