Files
x-server-mobile/mysql-utf8fix.cnf
T

17 lines
370 B
INI
Raw Normal View History

# MySQL UTF-8 字符集配置
# 放到 /etc/mysql/conf.d/ 或 /etc/my.cnf.d/ 目录下
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
init_connect = 'SET NAMES utf8mb4'
# 确保客户端连接使用正确字符集
skip-character-set-client-handshake = 0