Create the file /etc/mysql/conf.d/mysqld.cnf with the contents:
[mysqld] character-set-server = utf8 collation-server = utf8_unicode_ci
If you omit the mapping server, it must be configured to utf8_general_ci.
I tested this configuration with MySQL 5.6 on Ubuntu 15.04.
Gander
source share