mirror of https://github.com/CrimsonTome/tldr.git
commit
dfa5e2437b
|
@ -0,0 +1,11 @@
|
|||
# mysqldump
|
||||
|
||||
> Backups mysql databases
|
||||
|
||||
- creating a backup
|
||||
|
||||
`mysqldump -u {{user}} -p{{password}} {{database_name]}} > {{filename.sql}}`
|
||||
|
||||
- restoring a backup
|
||||
|
||||
`mysql -u {{user}} -p{{password}} {{database_name}} < {{filename.sql}}`
|
Loading…
Reference in New Issue