Problem
The CD server fails to start with the following error:
2021-04-26T15:40:39.063 | ERROR | bootstrap | | | | ServerStatus | Problem configuring the database: com.electriccloud.util.UncheckedException: com.mysql.cj.jdbc.Driver
Solution
This error occurs when upgrading the CD server to a newer version (10.1 in recent cases) while using the builtin MariaDB. The suggested workaround is installing the MySQL JDBC driver. Please check more details in Installing the MySQL JDBC Connector.
It is also recommended to use the 8.0.16 MySQL JDBC driver as other versions may not work according to the reported cases.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.