mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Fixed a typo I introduced to the mysqldump cheatsheet.
This commit is contained in:
parent
2e69eb063c
commit
67c8436691
1 changed files with 3 additions and 3 deletions
|
@ -1,17 +1,17 @@
|
||||||
# To dump a database to a file (Note that your password will appear in your command history!):
|
# To dump a database to a file (Note that your password will appear in your command history!):
|
||||||
-mysqldump -uusername -ppassword the-database > db.sql
|
mysqldump -uusername -ppassword the-database > db.sql
|
||||||
|
|
||||||
# To dump a database to a file:
|
# To dump a database to a file:
|
||||||
mysqldump -uusername -p the-database > db.sql
|
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!):
|
# 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
|
mysqldump -uusername -ppassword the-database | gzip -9 > db.sql
|
||||||
|
|
||||||
# To dump a database to a .tgz file:
|
# To dump a database to a .tgz file:
|
||||||
mysqldump -uusername -p the-database | gzip -9 > db.sql
|
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!):
|
# 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
|
mysqldump -uusername -ppassword --all-databases > all-databases.sql
|
||||||
|
|
||||||
# To dump all databases to a file:
|
# To dump all databases to a file:
|
||||||
mysqldump -uusername -p --all-databases > all-databases.sql
|
mysqldump -uusername -p --all-databases > all-databases.sql
|
||||||
|
|
Loading…
Reference in a new issue