DBA55 MySQL Replication 복구 얼마전 회사 DB서버의 Replication이 깨지는 바람에 복구하게 됐다. 실제 운영중인 서버를 다운 시키고 백업 받을수는 없었기 때문에 최단시간동안 Write Lock을 걸고 백업을 받은 후 Write Lock을 해제하고 리플리케이션을 설정하는것이 관건 이었다. 그래서 다음과 같은 작업을 진행.. /usr/local/mysql/bin/mysqladmin -uroot -p flush-logs /usr/local/mysql/bin/mysqladmin -uroot -p -C "flush tables with read lock" /usr/local/mysql/bin/mysqldump --single-transaction --all-databases --extended-insert=FALSE -c -uroot.. 2024. 2. 14. 이전 1 ··· 7 8 9 10 다음