mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 15:31:36 +01:00
Merge branch 'master' of https://github.com/codehill/cheat into codehill-master
* 'master' of https://github.com/codehill/cheat: More mysqldump commands.
This commit is contained in:
commit
d0e1f18e52
@ -1,8 +1,14 @@
|
||||
# To dump a database to a file:
|
||||
mysqldump -uusername -ppassword the-database > db.sql
|
||||
mysqldump -uusername -p the-database > db.sql
|
||||
|
||||
# To dump a database to a .tgz file:
|
||||
mysqldump -uusername -ppassword the-database | gzip -9 > db.sql
|
||||
mysqldump -uusername -p the-database | gzip -9 > db.sql
|
||||
|
||||
# To dump all databases to a file:
|
||||
mysqldump -uusername -ppassword --all-databases > all-databases.sql
|
||||
mysqldump -uusername -p --all-databases > all-databases.sql
|
||||
|
||||
# To export the database structure only:
|
||||
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
|
Loading…
Reference in New Issue
Block a user