./categories/server
mysqldump 백업·복구 루틴·트리거
루틴·트리거 포함 백업·복구
mysqldump --routines --triggers -u root -p DB명 > backup.sql
# 소켓이 기본과 다르면
mysqldump --socket=/path/to/mysql.sock --routines --triggers -u root -p DB명 > backup.sql
mysql -u root -p DB명 < backup.sql
복원 전 DB는 미리 생성. 권장: 새 덤프 → 기존 백업 보관 → drop → 동일명 create → import.
Row size too large (>8126)
SET GLOBAL innodb_file_format = Barracuda;
SET GLOBAL innodb_file_per_table = ON;
ALTER TABLE ������������ ROW_FORMAT=COMPRESSED;
또는 dump SQL에서 ROW_FORMAT=COMPACT → COMPRESSED 일괄 치환.
관련 링크: https://app.notion.com/p/f5415070160a4161bce8d66a6a75c5a4
./comments