Skip to content

MySQL Configuration Directions #6

Open

Description

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.

Activity

  1. nofacenonamedude commented on Aug 20, 2019

    @nofacenonamedude

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions