mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 09:17:57 +01:00
11 lines
232 B
Markdown
11 lines
232 B
Markdown
# 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}}`
|