My db server is mysql 8.0.11 and driver version 5.1.46.
When ssl is enabled, and tries to connect to the database, confluence setup reports the following.
Problem connecting to your database
SQLState - S1000
java.sql.SQLException: Illegal operation on empty result set.
But if "skip_ssl" is written to my.cnf and restarted mysql, then it shows the following error message.
Problem connecting to your database
SQLState - 08001
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed
Below is the output of logs/catalina.out
20-Apr-2018 14:35:35.680 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 6392 ms
Fri Apr 20 14:37:39 SGT 2018 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.
I also tried with the following connection string to disable verification and ssl
jdbc:mysql://localhost/confluencedb?verifyServerCertificate?=false&useSSL=false