1
0
mirror of https://github.com/cheat/cheat.git synced 2025-06-29 10:28:35 +02:00
2013-08-22 11:34:11 +10:00

9 lines
292 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