To create a MySQL database which uses the utf8 character set:
- Create a new database:
- Open <TeamCity data directory>/config/database.properties, and add the characterEncoding property:
To change the character set of an existing MySQL database to utf8:
- Shut the TeamCity server down.
- Dump the database data to the file dump_data.sql:
- Dump the database schema to the file dump_schema.sql:
- Edit dump_schema.sql. Remove DEFAULT CHARSET=<some charset> from the table and column definitions.
- Create a new database with uft8 as the default character set:
- Import dump_schema.sql into the new database:
- Import dump_data.sql into the new database:
- Modify <TeamCity data directory>/config/database.properties file as follows:
- change connectionUrl property to:
- add characterEncoding property: