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

MySQL Configuration Directions #6

Open
ghost opened this issue Mar 2, 2019 · 2 comments
Open

MySQL Configuration Directions #6

ghost opened this issue Mar 2, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2019

In Method 4 using the WAR file, it would be nice to have some directions on how mySQL server needs to be installed and configured in order for the JDBC connection to work properly. I have spent a good 15-20 hours trying to get the install to work including attempting to debug the source code using Eclipse, but have not successfully gotten the db scripts to connect or run. I am running the application on the following:
Tomcat 8.5x - app is deployed and running successfully
Windows Server 2012
MySQL 5.5.62 - full install with all default values

The docker and VM methods work great, but I'd like to be able to show a full deployment of the application to new users.

@ghost
Copy link
Author

ghost commented Mar 3, 2019

LOL...literally 5 minutes after I wrote this...I got it working. For those of you struggling with method 4. Make sure to install mySQL 5.5.62 and change the jdbc url to jdbc:mysql://localhost:3306/

Also make sure if installing mySQL on Windows to change the service name to mysql instead of MYSQL55

You can leave everything else default and db scripts will run.

@nofacenonamedude
Copy link

nofacenonamedude commented Aug 20, 2019

Had the same issue with the Docker installation. The mysql version in the docker image is version: '8.0.17'

1- Simply change the pom.xml dependency for mysql-connector-java from version '5.1.26' to version '8.0.17' so that the JDBC driver can talk to the mysql service (they have to be the same version) and save the file.

2- rebuild the image using the command below
sudo docker-compose build

3- bring up the machine
sudo docker-compose up

PS: Do not change anything on the instal.jsp screen. eg: leave the JDBC URL as: 'jdbc:mysql://mysql:3306/'

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

1 participant