When new databases are created in cPanel they don't get the desired utf8_unicode_ci collation but instead utf8_general_ci even though the former one should be the default collation.
The databases are created in the control panel but not phpMyAdmin.
How can I make the database creation tool create the db with the utf8_unicode_ci collation?
There is also one thing worth mentioning and that is the 'Server connection collation' in phpMyAdmin general Settings on the dashboard, which is utf8_general_ci but should perhaps be utf8_unicode_ci. Please advice me on of how to make it so.
Output from the character and collation variables query:
Charset in my.cnf:
The databases are created in the control panel but not phpMyAdmin.
How can I make the database creation tool create the db with the utf8_unicode_ci collation?
There is also one thing worth mentioning and that is the 'Server connection collation' in phpMyAdmin general Settings on the dashboard, which is utf8_general_ci but should perhaps be utf8_unicode_ci. Please advice me on of how to make it so.
Output from the character and collation variables query:
Code:
mysql> show variables like "%character%";show variables like "%collation%";
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database | utf8_unicode_ci |
| collation_server | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)
Code:
[mysqld]
init_connect='SET collation_connection=utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
Last edited: