1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:38:01 +01:00
tldr/pages/common/mysqldump.md
2015-10-23 08:02:34 +08:00

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}}`