본삭금 했습니다. <div><br></div> <div><span></span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">안녕하세요</span></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">개인적으로 작고 소소한 아무 쓰잘데기 없는 프로젝트를 진행 중에 문제가 생겨 질문드립니다</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">개발환경은 java(eclipse), windows 7, mysql 5.5 사용중이고, mysql workbench 5.2 Ce 를 함께 사용중입니다.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">몇번 시험으로 코드를 돌리다보니 DB 가 많이 쌓였습니다. mysql workbench에서 전체를 select 하면 메모리 문제로 다운하고, </span></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">select … from information_schema.TABLES 로 테이블 용량을 조회하면 15기가 정도 되는것같습니다. </span></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">(</span><a target="_blank" href="http://lesstif.com/pages/viewpage.action?pageId=17105786" style="text-decoration:none;" target="_blank"><span style="font-size:15px;font-family:Arial;color:#1155cc;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">http://lesstif.com/pages/viewpage.action?pageId=17105786</span></a><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">)</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">C 드라이브가 여유가 없어 D 드라이브로 옮기고 싶은데, 그게 쉽지 않네요.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">검색해본 결과 물리적 백업과 논리적 백업이 있다 하는데…</span></p><br><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">저장 파일만 옮기면 되겠지 생각하여 /mysql/data 폴더를 D로 옮기려고 했습니다.</span></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">근데 그 폴더의 파일들은 갱신된적도 없고, 데이터 저장된거라고 하기엔 너무 크기가 작네요. 실제로 인식 못하게 이름을 바꿔도 계속 데이터는 남아있었고..</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><a target="_blank" href="https://kldp.org/node/138370#comment-596957" style="text-decoration:none;" target="_blank"><span style="font-size:15px;font-family:Arial;color:#1155cc;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">https://kldp.org/node/138370#comment-596957</span></a></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">위 링크 참고하여 my.cnf에서 경로만 바꿨지만 아무일도 일어나지 않았습니다.</span></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">(정확히는 my.ini 에서 바꿨습니다. 링크에서 나오는 my.cnf 는 찾아봐도 없고, 더 검색해보니 my.ini에 있을거라고 해서…)</span></p><br><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">그래서 mysqldump 등을 이용한 백업을 시도했지만...</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><a target="_blank" href="http://emflant.tistory.com/22" style="text-decoration:none;" target="_blank"><span style="font-size:15px;font-family:Arial;color:#1155cc;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">http://emflant.tistory.com/22</span></a></p> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">위 링크 참고하여 dump 명령을 했습니다. 일단 스키마만 백업해서 옮기려고 No Data 옵션을 추가해서 실행시켰는데 생성된 sql 파일이 11기가 입니다.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:15px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">그래서 일단 보류했습니다.</span></p><br><br><ol style="margin-top:0pt;margin-bottom:0pt;"><li dir="ltr" style="list-style-type:decimal;font-size:15px;font-family:Arial;vertical-align:baseline;background-color:transparent;"> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">실제로 저장된 데이터 파일은 대체 어딨을까요? </span></p></li> <li dir="ltr" style="list-style-type:decimal;font-size:15px;font-family:Arial;vertical-align:baseline;background-color:transparent;"> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">이걸 옮기는게 가능한건가요?</span></p></li> <li dir="ltr" style="list-style-type:decimal;font-size:15px;font-family:Arial;vertical-align:baseline;background-color:transparent;"> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="vertical-align:baseline;white-space:pre-wrap;background-color:transparent;">저장 위치를 my.ini 의 내용을 수정하면 바뀌는게 맞는건가요? (대부분의 검색결과는 my.cnf 를 수정하라고 되어있고… 실제 저장된 파일과 my.ini 에 설정된 폴더가 무관해보이니 저걸 고쳐도 저장 위치가 바뀌지 않을거란 생각 때문에 의구심이 듭니다.)</span></p></li></ol></div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.