Whenever I run mvn openmrs-sdk:setup, I get the following error:
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.0:setup (default-cli) on project referenceapplication: Failed to setup server: Failed to connect to the specified database jdbc:mysql://localhost:3306/server?autoReconnect=true&sessionVariables=default_storage_engine%3DInnoDB&useUnicode=true&characterEncoding=UTF-8 →
Failed to connect to the specified database jdbc:mysql://localhost:3306/server?au
toReconnect=true&sessionVariables=storage_engine%3DInnoDB&useUnicode=true&charac
terEncoding=UTF-8
Please double check whether MySQL server is up and running while you are running these SDK commands. Make sure that you have provided the correct credentials.
Yes I am. I even created a database with the name server to match what the sdk server expects. Workbench is connected to Mysql on port 3306, same as that expected by the sdk installer
A piece of advice here. We learned from OpenMRS conference 2017 hackathon that on Windows, you should avoid using Bash or any other Linux shell, instead use PowerShell or just Windows command prompt. Otherwise you may get the same data connection error.