Bitbucket Server fails to connect to external database - The target database is not configured for UTF-8 support

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

Cause

When creating the Bitbucket Server external database, incorrect character set and collation were used. 

Resolution

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";
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.