Support Health Check issues within Confluence using MySQL database
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
Summary
Problem
Confluence is using MySQL database and may be exhibiting the following issue:
Unexpected crashes
Error messages in the Health Check menu:

The following error message appears in the atlassian-confluence.log
1
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 '-abc.supporthealthchecks' at line 1
Diagnosis
Diagnostic Steps
Check if Confluence database has an illegal character hyphen "-" in it.
From the example above, Confluence has been connected to a database with the name "confluence-abc"
Cause
The healthcheck plugin cannot handle a mysql database name with a hyphen in it.
Solution
Resolution
Rename the database so that it does not contain hyphens "-"
Was this helpful?