I'm having some difficulty understanding differences in logic between my.cnf settings and actual database settings.
For example, my my.cnf has the following:
init_connect = 'SET collation_connection=utf8_unicode_ci'
init_connect = 'SET NAMES utf8'
character-set-server = utf8
collation-server = utf8_unicode_ci
And when I log into the database without specify the schema I see the following collation variables set:
mysql> show variables like '%coll%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database | utf8_unicode_ci |
| collation_server | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)
I have a few questions here:
1) Why is collation_connection set to utf8_general_ci when I specify utf8_unicode_ci in my my.cnf file?
2) Why, when I create tables is the default collation utf8_general_ci?
I'm having some difficulty understanding how these collation variables are interpreted and used.
rootskipsinit_connectduring its login. - Rick James