Denki 發表於 2022年9月12日 02:01:28

Windows Server MySQL default character set

MySQLmy.ini檔案
**** Hidden Message *****
重新啟動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)

ANDYr12 發表於 2022年9月12日 16:25:31

看看是啥好方法
謝謝大大分享

許桐芳 發表於 2022年10月1日 01:02:57

很好奇謝謝分享
頁: [1]
檢視完整版本: Windows Server MySQL default character set