[mysql] mysqldump 사용해서 DB 백업하기
Cheat Sheet --- tags: [ database ] --- # To dump a database to a file (Note that your password will appear in your command history!): mysqldump -u -p > db.sql # To dump a database to a file: mysqldump -u -p > db.sql # To dump a database to a .tgz file (Note that your password will appear in your command history!): mysqldump -u -p | gzip -9 > db.sql # To dump a database to a .tgz file: mysqldump ..