The DB I got was latin1 and latin1_swedish_ci. (?!)
Description
Details
Related Objects
Event Timeline
Probably utf8mb4, with either the utf8_unicode_ci or utf8mb4_bin collation.
I'm not entirely sure what the impact of this is on databases created from data from replica databases. If I remember correctly, they store utf-8 binary data in a column marked as latin1 -- and copying that data to a database with utf8mb4 encoding might mangle the data.
Replica databases have to stay in binary collation. I am talking here about toolsdb, which certainly is misconfigured.
Change 260558 had a related patch set uploaded (by Jcrespo):
Setting default character set as utf8mb4 for toolsdb
Change 260558 merged by Jcrespo:
Setting default character set as utf8mb4 for toolsdb
Change 260559 had a related patch set uploaded (by Jcrespo):
Correcting typo on tooldb client configuration
$ mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 201372010 Server version: 5.5.39-MariaDB-log Source distribution Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB TOOLSDB master localhost (none) > SHOW GLOBAL VARIABLES like 'character%'; +--------------------------+----------------------------------+ | Variable_name | Value | +--------------------------+----------------------------------+ | character_set_client | utf8mb4 | | character_set_connection | utf8mb4 | | character_set_database | utf8mb4 | | character_set_filesystem | binary | | character_set_results | utf8mb4 | | character_set_server | utf8mb4 | | character_set_system | utf8 | | character_sets_dir | /opt/wmf-mariadb/share/charsets/ | +--------------------------+----------------------------------+ 8 rows in set (0.00 sec)
This is fixed, however: character set is something that it is negotiated between the client and the server, and can be changed by the client (connection) at any time.
The local client should have good defaults, that can be cofigured on the client's /etc/my.cnf or $HOME/.my.cnf or by executing "SET NAMES".
Some services, like some versions of php, ignore server's suggestion and set its own default.
I've fixed everything I can on server side, but I strongly suggest setting the right character set on connection and on database creation. Also, existing data is not converted automatically, databases and tables created with latin1 will continue to be latin1 unless specifically converted. See more info: http://dev.mysql.com/doc/refman/5.7/en/charset-connection.html
MariaDB TOOLSDB master localhost (none) > SHOW GLOBAL VARIABLES like 'collat%'; +----------------------+--------------------+ | Variable_name | Value | +----------------------+--------------------+ | collation_connection | utf8mb4_unicode_ci | | collation_database | utf8mb4_unicode_ci | | collation_server | utf8mb4_unicode_ci | +----------------------+--------------------+ 3 rows in set (0.00 sec)
Of course, not all databases will need UTF-8 (utf8mb4) character set- those are the user's/application responsibility to be configured.