MySQLmy.ini檔案
重新啟動mysql服務
然後查詢字元集:
指令
show variables like '%character%';
mysql> show variables like 'character_set%';
+--------------------------+---------------------------------------------------------+
| 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 | |
+--------------------------+---------------------------------------------------------+
8 rows in set, 1 warning (0.00 sec)
指令
show variables like "%colla%";
mysql> show variables like "%colla%";
+----------------------+--------------------+
| Variable_name | Value |
+----------------------+--------------------+
| collation_connection | utf8mb4_unicode_520_ci |
| collation_database | utf8mb4_unicode_520_ci |
| collation_server | utf8mb4_unicode_520_ci |
+----------------------+--------------------+
3 rows in set, 1 warning (0.00 sec) |