- 添加 Dockerfile 与多套 docker-compose 配置(开发/生产环境) - 集成 Laravel Octane (Swoole) 提升性能 - 新增健康检查、监控脚本及部署文档 - 新增 Docker 镜像离线导入包(MySQL/Redis/Meilisearch) - 优化文档转换、预览服务及队列任务 - 添加 CreateAdminUser 命令与路由健康检查接口 - 新增 Swoole 队列兼容性测试套件 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
829 B
INI
40 lines
829 B
INI
# MySQL生产环境配置
|
|
[mysqld]
|
|
# 基础配置
|
|
default-authentication-plugin=mysql_native_password
|
|
character-set-server=utf8mb4
|
|
collation-server=utf8mb4_unicode_ci
|
|
default-time-zone='+08:00'
|
|
|
|
# 性能优化
|
|
innodb_buffer_pool_size=512M
|
|
innodb_log_file_size=128M
|
|
innodb_flush_log_at_trx_commit=2
|
|
innodb_flush_method=O_DIRECT
|
|
|
|
# 连接配置
|
|
max_connections=200
|
|
max_connect_errors=1000
|
|
wait_timeout=600
|
|
interactive_timeout=600
|
|
|
|
# 查询缓存
|
|
query_cache_type=1
|
|
query_cache_size=64M
|
|
query_cache_limit=2M
|
|
|
|
# 日志配置
|
|
slow_query_log=1
|
|
slow_query_log_file=/var/log/mysql/slow.log
|
|
long_query_time=2
|
|
log_queries_not_using_indexes=1
|
|
|
|
# 安全配置
|
|
skip-name-resolve
|
|
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO
|
|
|
|
[mysql]
|
|
default-character-set=utf8mb4
|
|
|
|
[client]
|
|
default-character-set=utf8mb4 |