Users are unable to add a MySQL data source from the Admin Console. The following error is printed in the application server log:
ERROR com.appiancorp.expr.server.scriptingfunctions.DataSourceFunctions - Failed datasource validationcom.appiancorp.rdbms.datasource.DataSourceValidationException: java.sql.SQLException: Cannot create PoolableConnectionFactory (SSL connection is required. Please specify SSL options and retry.)...Caused by: java.sql.SQLException: Cannot create PoolableConnectionFactory (SSL connection is required. Please specify SSL options and retry.)...Caused by: java.sql.SQLException: SSL connection is required. Please specify SSL options and retry.
The MySQL data source requires an SSL connection, but the connection string does not specify that SSL should be used.
&useSSL=true
&useSSL=true&trustServerCertificate=true
NOTE: Appending &trustServerCertificate=true to the connection string will cause Appian to automatically trust the database server certificate. This may be required if the server is using a self-signed certificate, but this is not recommended in production environments.
&trustServerCertificate=true
This article applies to all versions of Appian.
Last Reviewed: August 2020