🚫 에러 상황
ec2 인스턴스에 docker로 mysql을 띄워서 데이터를 저장했다. 그런데 서버가 내려가면서 넣어놓은 데이터들이 다 날라가는 경우가 반복되어서 데이터 복구하는 방법을 남긴다.
일단 데이터가 있을 때 워크벤치를 이용해서 백업을 해놓는다.
⭕️ 데이터 백업하기
- Administration - Data Export로 들어간다.
- 백업을 원하는 데이터를 선택하고 Start Export를 클릭한다.


출처 : https://anythingcafe.tistory.com/15
⭕️ data 복구하기
- administration - data import 클릭

- import from dump project folder에서 백업파일이 있는 폴더 선택
- Load Folder Contents 버튼 클릭
- 아래에서 스키마 확인 후 Start Import 확인 (동명의 Schema가 있어야한다)
