mirror of https://github.com/CrimsonTome/tldr.git
mysqldump: use proper filename token for all examples
parent
40af8c1f54
commit
21580038c4
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- Create a backup (user will be prompted for a password):
|
- Create a backup (user will be prompted for a password):
|
||||||
|
|
||||||
`mysqldump --user {{user}} --password {{database_name}} -r {{filename.sql}}`
|
`mysqldump --user {{user}} --password {{database_name}} -r {{path/to/file.sql}}`
|
||||||
|
|
||||||
- Restore a backup (user will be prompted for a password):
|
- Restore a backup (user will be prompted for a password):
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
- Backup all databases redirecting the output to a file (user will be prompted for a password):
|
- Backup all databases redirecting the output to a file (user will be prompted for a password):
|
||||||
|
|
||||||
`mysqldump --user {{user}} --password --all-databases > {{filename.sql}}`
|
`mysqldump --user {{user}} --password --all-databases > {{path/to/file.sql}}`
|
||||||
|
|
||||||
- Restore all databases from a backup (user will be prompted for a password):
|
- Restore all databases from a backup (user will be prompted for a password):
|
||||||
|
|
||||||
`mysqldump --user {{user}} --password < {{filename.sql}}`
|
`mysqldump --user {{user}} --password < {{path/to/file.sql}}`
|
||||||
|
|
Loading…
Reference in New Issue