From f5ab47b116b2446fbce93e10458cebb1a2b40cab Mon Sep 17 00:00:00 2001 From: Christian 'ketura' McCarty Date: Thu, 4 Aug 2022 15:46:03 -0500 Subject: [PATCH] Fixed out-of-date MYSQL driver reference not working in the new environment. --- gemp-lotr/docker/readme.txt | 2 +- gemp-lotr/gemp-lotr-common/pom.xml | 5 +++++ .../gemp-lotr-common/src/main/resources/gemp-lotr.properties | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/docker/readme.txt b/gemp-lotr/docker/readme.txt index 76fc72e40..a99c41b1e 100644 --- a/gemp-lotr/docker/readme.txt +++ b/gemp-lotr/docker/readme.txt @@ -29,7 +29,7 @@ gemp_app is slightly more complicated. Gemp is a Java server, is built using Ma 4C- note the two "published" ports: 17001 for the app, and 35001 for the db. These are the ports that you will be accessing the site with (and the db if you connect with a database manager). If you are hosting this for something other than personal development, consider changing these to something else. DO NOT change the "target" ports. -5- If you changed SQL credentials in step 4, navigate to gemp-lotr/gemp-lotr/gemp-lotr-commond/src/main/resources/ and open gemp-lotr.properties: +5- If you changed SQL credentials in step 4, navigate to gemp-lotr/gemp-lotr/gemp-lotr-common/src/main/resources/ and open gemp-lotr.properties: 5A- DO NOT CHANGE the ports here. These ports listed are the "target" ports in step 4C, which you didn't edit because you followed the big "DO NOT" imperative. diff --git a/gemp-lotr/gemp-lotr-common/pom.xml b/gemp-lotr/gemp-lotr-common/pom.xml index 5d7bc0f30..e77556486 100644 --- a/gemp-lotr/gemp-lotr-common/pom.xml +++ b/gemp-lotr/gemp-lotr-common/pom.xml @@ -27,5 +27,10 @@ 4.13.2 test + + mysql + mysql-connector-java + 8.0.30 + \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-common/src/main/resources/gemp-lotr.properties b/gemp-lotr/gemp-lotr-common/src/main/resources/gemp-lotr.properties index 16a2cbd53..3336bd60b 100644 --- a/gemp-lotr/gemp-lotr-common/src/main/resources/gemp-lotr.properties +++ b/gemp-lotr/gemp-lotr-common/src/main/resources/gemp-lotr.properties @@ -2,7 +2,7 @@ application.root=/etc/gemp-lotr ## DB connection -db.connection.class=org.gjt.mm.mysql.Driver +db.connection.class=com.mysql.jdbc.Driver db.connection.url=jdbc:mysql://db:3306/gemp_db db.connection.username=gempuser db.connection.password=gemppassword