在映射好的配置文件目錄下新建一個配置文件,然後在裡邊規定編碼為 utf8
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
在映射好的配置文件目錄下新建一個配置文件,然後在裡邊規定編碼為 utf8
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci