fix: switch to xserver database with UTF-8 data
- 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>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user