be9ae8a0d9
- Change default database from x_server_mobile to xserver - Add 007_xserver_init.sql initialization script - Companies data now correctly encoded in UTF-8: - 合塑 (hesu) - 新友合 (xinyouhe) - 派卡 (paika) - 斯玛特 (simate) - magic bridge Auto (mbaf) - Company Feishu apps properly configured The key fix is to execute SQL directly inside the MySQL container using heredoc to avoid charset conversion issues during transfer. Usage: docker exec 1Panel-mysql-409s mysql -uroot -p'mysql_xEsdPa' --default-character-set=utf8mb4 xserver < 007_xserver_init.sql Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
370 B
INI
17 lines
370 B
INI
# 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
|