To use the 4-byte utf8mb4 in MySQL (5.6.11), I set the following variables in the my.ini file ( my.cnf not found). This file is located in a hidden folder called Application Data ( C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.6 ) in Windows XP. It is not available in the installation directory.
[client] port=3306 default-character-set=utf8mb4 [mysql] default-character-set=utf8mb4 [mysqld] init-connect='SET NAMES utf8mb4' collation_server=utf8mb4_unicode_ci character_set_server=utf8mb4
And then issuing the following command
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
The following list is still displayed.

From the image itself, several variables are still using 3-byte utf8 .
Before doing this, the following command has already been issued to make the appropriate changes to the database.
ALTER DATABASE database_name CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
And the following command was also issued for each table in the specified database.
ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
However, what is the reason that some variables are not yet set for the specified character set, as well as for sorting? What is missing?
The system itself (operating system) was restarted after each task set above.
source share