Skip to content

Commit

Permalink
Use new driver location com.mysql.cj.jdbc.Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Oct 30, 2022
1 parent a629c64 commit a9b984f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion aspiredb/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ whatever directory CATALINA_HOME is set to).

the contents of aspiredb.properties should be as follows:

jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.driverClassName=com.mysql.cj.jdbc.Driver

# change this value to whatever the path is to your database with the aspiredb schema
jdbc.url=jdbc:mysql://localhost:3306/aspiredb
Expand Down
7 changes: 3 additions & 4 deletions aspiredb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
</dependencies>
<!-- common configuration shared by all executions -->
<configuration>
<driver>com.mysql.jdbc.Driver</driver>
<driver>com.mysql.cj.jdbc.Driver</driver>
<username>${aspiredb.db.build.user}</username>
<password>${aspiredb.db.build.password}</password>
<onError>abort</onError>
Expand Down Expand Up @@ -617,13 +617,12 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<!-- TODO: move this into pavlab-starter-parent -->
<version>8.0.27</version>
<version>${mysql.version}</version>
</dependency>
</dependencies>
<!-- common configuration shared by all executions -->
<configuration>
<driver>com.mysql.jdbc.Driver</driver>
<driver>com.mysql.cj.jdbc.Driver</driver>
<username>${aspiredb.db.build.user}</username>
<password>${aspiredb.db.build.password}</password>
<onError>abort</onError>
Expand Down
3 changes: 1 addition & 2 deletions aspiredb/src/main/resources/database.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/aspiredb?rewriteBatchedStatements=true
jdbc.username=aspiredb_web
jdbc.password=aspiredb
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
3 changes: 1 addition & 2 deletions aspiredb/src/test/resources/database.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
test.jdbc.driverClassName=com.mysql.jdbc.Driver
test.jdbc.driverClassName=com.mysql.cj.jdbc.Driver
test.jdbc.url=jdbc:mysql://localhost:3306/aspiredbtest
test.jdbc.username=default_testdb_user
test.jdbc.password=default_testdb_password
#test.hibernate.dialect=org.hibernate.dialect.MySQLDialect
test.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

0 comments on commit a9b984f

Please sign in to comment.