Connection to MySQL Database Fails with 'You have an error in your SQL syntax' Error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
While trying to migrate to MySQL database, upon clicking on the "Test Connection" button, the following error is reported on screen:
1
Couldn't connect to database: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where variable_name = 'collation_database'' at line 1. See logs for details.
Cause
Fisheye is being run with an unsupported version of MySQL - in this case 4.1.20.
Resolution
Refer to the supported platforms guide and upgrade MySQL to a supported version.
Was this helpful?