Enhance database management features by adding an API endpoint to drop all tables with double confirmation. Implement configuration file upload and download functionalities, including backup of the existing configuration. Update UI elements for improved user experience, including pagination controls and toast notifications. Adjust Docker and git ignore files to optimize build processes.

This commit is contained in:
2026-01-14 18:27:05 +08:00
parent 866fc1cb06
commit 5b50c9750f
19 changed files with 2424 additions and 166 deletions
+35
View File
@@ -0,0 +1,35 @@
# MySQL 自定义配置 - CapacityReport
# 启用 LOAD DATA LOCAL INFILE 支持
[mysqld]
# 字符集
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
# 启用 LOAD DATA LOCAL INFILE
local_infile = ON
secure_file_priv = ""
# 性能优化
max_allowed_packet = 256M
innodb_buffer_pool_size = 512M
innodb_log_file_size = 128M
innodb_flush_log_at_trx_commit = 2
sync_binlog = 0
# 连接设置
max_connections = 200
wait_timeout = 28800
interactive_timeout = 28800
# 日志(可选,生产环境建议注释掉)
# general_log = 1
# general_log_file = /var/lib/mysql/general.log
[mysql]
# 客户端设置
local_infile = ON
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
+13
View File
@@ -0,0 +1,13 @@
-- MySQL 初始化脚本 - 确保数据库以正确的字符集创建
-- 此脚本仅在首次初始化时执行(数据目录为空时)
-- 如果数据库不存在,则创建(使用 utf8mb4 字符集)
CREATE DATABASE IF NOT EXISTS CapacityReport
CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
-- 切换到数据库
USE CapacityReport;
-- 输出确认信息
SELECT 'CapacityReport database initialized with utf8mb4 charset' AS status;