You are currently reviewing an older revision of this page.

DRAFT SP-4715 Unable to add MySQL data source from Admin Console due to "Failed datasource validation" and SSL error

Symptoms

Users are unable to add a MySQL data source from the Admin Console due to the following error in the application server log:

ERROR com.appiancorp.expr.server.scriptingfunctions.DataSourceFunctions - Failed datasource validation
com.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.

Cause

The MySQL data source requires an SSL connection, but the connection string does not specify that SSL should be used.

Action

This error can be resolved by appending &useSSL=true to the MySQL connection string, which requires the connection string to use SSL. If the error still occurs, it can be resolved by appending &useSSL=true&trustServerCertificate=true to the connection string, which requires it to both use SSL and trust the existing certificate if self-signed and/or not trusted automatically.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: August 2020