mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
Trivial changes to the mysqldump cheatsheet.
This commit is contained in:
parent
d0e1f18e52
commit
2e69eb063c
@ -1,9 +1,18 @@
|
||||
# To dump a database to a file (Note that your password will appear in your command history!):
|
||||
-mysqldump -uusername -ppassword the-database > db.sql
|
||||
|
||||
# To dump a database to a file:
|
||||
mysqldump -uusername -p the-database > db.sql
|
||||
|
||||
# To dump a database to a .tgz file (Note that your password will appear in your command history!):
|
||||
-mysqldump -uusername -ppassword the-database | gzip -9 > db.sql
|
||||
|
||||
# To dump a database to a .tgz file:
|
||||
mysqldump -uusername -p the-database | gzip -9 > db.sql
|
||||
|
||||
# To dump all databases to a file (Note that your password will appear in your command history!):
|
||||
-mysqldump -uusername -ppassword --all-databases > all-databases.sql
|
||||
|
||||
# To dump all databases to a file:
|
||||
mysqldump -uusername -p --all-databases > all-databases.sql
|
||||
|
||||
@ -11,4 +20,4 @@ mysqldump -uusername -p --all-databases > all-databases.sql
|
||||
mysqldump --no-data -uusername -p the-database > dump_file
|
||||
|
||||
# To export the database data only:
|
||||
mysqldump --no-create-info -uusername -p the-database > dump_file
|
||||
mysqldump --no-create-info -uusername -p the-database > dump_file
|
||||
|
Loading…
Reference in New Issue
Block a user