Bitbucket Server fails to connect to external database - The target database is not configured for UTF-8 support
Bitbucket Server fail to connect to MySQL database. The following appears
on the UI:
The target database is not configured for UTF-8 support. For information about creating a database for use with Bitbucket Server, please refer to the Bitbucket Server documentation.If you continue having issues, get in touch with our support team and we'll help get you up and running. Show details
When creating the Bitbucket Server external database, incorrect character set and collation were used.
To fix the error message, please make sure you configured the correct character set (UTF-8) required by Bitbucket Server at the database creation time. There are instructions on how you should perform that within each of the documents below:
# Make sure your MySQL database is configured as the document above -> utf8 character set encoding and utf8_bin collation show variables like "character_set_database"; show variables like "collation_database";