No suitable JDBC driver found for database type: MySQL

Just upgraded today from TeamCity 7 to TeamCity 8. The "TeamCity Server" (Windows service) starts successfully, but I get the following error message when browsing to the TeamCity web server:

No suitable JDBC driver found for database type: MySQL


Checked the server logs, but found no additional information.

MySQL 5.5.28 was installed, and mysql-connector-java-5.1.24-bin.jar was present in both {TeamCity}\lib and {TeamCity}\lib\jdbc. This setup was previously working with TeamCity 7. I updated both MySQL and the JDBC connector to the latest (5.5.32 and 5.1.25, respectively) in case there was a breaking change in compatibility between TeamCity 7 and 8, but it didn't help. I know TeamCity is loading the JDBC connector because the .jar file is locked and can't be deleted while the TeamCity Server is running.

Any ideas? This feels like a simple problem, so I must be missing something simple here.

5 comments

Anyone? Our builds are dead in the water until this is fixed.

0

MySQL driver must be placed in <TeamCity data directory>/lib/jdbc folder. You can read about <TeamCity data directory> in our documentation: http://confluence.jetbrains.com/display/TCD8/TeamCity+Data+Directory

0

Got it! I was putting the JDBC connector in TeamCity\lib\jdbc, but it needed to be in TeamCity\Config\lib\jdbc.

0

It is important to distinguish TeamCity installation directory from TeamCity data directory. The first one is where TeamCity executable files are placed, while the second one is where TeamCity stores configuration files and other data related to projects.

0

Please sign in to leave a comment.