I am setting up OpenMRS SDK on Linux but I am getting this error. how can this be fixed for a successful setup @kdaud@mozzy
Tue Jun 15 20:08:19 EAT 2021 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.820 s
[INFO] Finished at: 2021-06-15T20:08:20+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.0.1:setup (default-cli) on project standalone-pom: 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 → [Help 1]
Ensure to have MySQL 5.6 and above installed and running and specify the right db name when the installation wizard prompt you at The distribution requires MySQL database. Please specify database uri (-DdbUri) (default:jdbc:mysql://localhost:3306/@DBNAME@’): `. This may require you to first create a database instance from the db server before running the set up wizard
@insookwa I want to believe the error is caused by the changed connection defaults on the mysql jdbc connector library. To solve this
add this string verifyServerCertificate\=false&useSSL\=true&requireSSL\=true in openmrs-runtime.properties file on your local machine
Then run these SQL statement to confirm the connection is secure
SELECT processlist_id, processlist_user, processlist_host, connection_type, v
SELECT processlist_id, processlist_user, processlist_host, connection_type, variable_value AS cipher FROM performance_schema.threads t JOIN performance_schema.status_by_thread sbt ON (t.thread_id = sbt.thread_id AND sbt.variable_name = 'Ssl_cipher_list' ) WHERE connection_type IS NOT NULL\G run in your mysql database.
Wed Jun 16 13:17:27 EAT 2021 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE