- monthly_worker_status 조회 시 GROUP BY로 중복 데이터 합산 - 작업보고서 삭제 권한을 그룹장 이상으로 제한 (admin, system, group_leader) - 중복 데이터 정리를 위한 마이그레이션 SQL 추가 (009_fix_duplicate_monthly_status.sql) - synology_deployment 버전에도 동일 수정 적용
38 lines
781 B
INI
38 lines
781 B
INI
# MySQL 8.0 시놀로지 최적화 설정
|
|
[mysqld]
|
|
# 기본 설정
|
|
default-authentication-plugin=mysql_native_password
|
|
character-set-server=utf8mb4
|
|
collation-server=utf8mb4_unicode_ci
|
|
default-time-zone='+09:00'
|
|
|
|
# 성능 최적화 (SSD 환경)
|
|
innodb_buffer_pool_size=2G
|
|
innodb_log_file_size=256M
|
|
innodb_flush_log_at_trx_commit=2
|
|
innodb_flush_method=O_DIRECT
|
|
innodb_io_capacity=1000
|
|
innodb_io_capacity_max=2000
|
|
|
|
# 연결 설정
|
|
max_connections=200
|
|
max_allowed_packet=64M
|
|
wait_timeout=28800
|
|
interactive_timeout=28800
|
|
|
|
# 로그 설정
|
|
slow_query_log=1
|
|
slow_query_log_file=/var/log/mysql/slow.log
|
|
long_query_time=2
|
|
|
|
# 바이너리 로그 (복제용)
|
|
log-bin=mysql-bin
|
|
binlog_format=ROW
|
|
expire_logs_days=7
|
|
|
|
[mysql]
|
|
default-character-set=utf8mb4
|
|
|
|
[client]
|
|
default-character-set=utf8mb4
|