본문 바로가기
Computer/Etc

mysqldump 이용하기

by hexists 2014. 11. 24.

기억을 위해 남겨 놓는다.


mysqldump -h"mysql server" -u  id -p password database table > 파일명(dump.sql)


이렇게 하면 table을 dump 받을 수 있고,


mysql -h"mysql server" -u  id -p password database < 파일명(dump.sql)


이렇게 하면 dump 받았던 table을 다시 복구할 수 있다.


끝~!


참고 : http://www.qdata.co.kr/bo/bbs/board.php?bo_table=myt&wr_id=54

'Computer > Etc' 카테고리의 다른 글

long-tail vs short head  (0) 2014.12.03
svn에서 다른 리비전간에 diff 하기  (0) 2014.11.25
hash의 충돌 해결법(collsion resolution in hash tables)  (0) 2014.11.16
hadoop distcp  (0) 2014.10.27
Empirical Evaluation of Algorithms  (0) 2014.08.31