cheat-fork-echo/cheatsheets/mysqldump
Louis Taylor 8dda6a9241 Package with distutils
Created cheatsheets package to store the default sheets.
2013-08-13 11:01:06 +01:00

9 lines
286 B
Plaintext

To dump a database to a file:
mysqldump -uusername -ppassword the-database > db.sql
To dump a database to a .tgz file:
mysqldump -uusername -ppassword the-database | gzip -9 > db.sql
To dump all databases to a file:
mysqldump -uusername -ppassword --all-databases > all-databases.sql