Home > Back-end >  Mysql connector - Java database connection of different versions
Mysql connector - Java database connection of different versions

Time:12-01

A springboot + maven project, the original connection a mysql version 8.0, now even a mysql 5.7 at the same time how to do? [mysql connector - Java] if not compatible with low version of mysql

CodePudding user response:

Meets with the different versions of the maven will automatically overwrite the old version, you might not realize a project is compatible with many versions of the package, if split into distributed estimation are ok

CodePudding user response:

Try try using only 8.0 jar, other seem to also do not have what good solution

CodePudding user response:

Can be connected, the building Lord met what problem?

CodePudding user response:

I do the ETL connection dozens of mysql, various versions, drivers always only one, at present not found the problem, take out several stable,
I don't know the building Lord what problems?

CodePudding user response:

Integral integral

CodePudding user response:

winter snow crystal reference 4 floor response:
I do ETL connection dozens of mysql, various versions, drivers always only one, there are currently no found the problem, take out several stable,
I don't know the building Lord what problems?


You use what version of the jar?

CodePudding user response:

CodePudding user response:

Springboot2. Default to x 8. X mysql connector - Java, can connect to the mysql 5.7 version of the

# or do not configure driver name
Spring. The datasource. The driver - class - name=com. Mysql. Cj). The JDBC driver

CodePudding user response:

This should be ok by encapsulating 2 different JDBC to implement
  • Related