tldr/pages/common/mysqldump.md

12 lines
233 B
Markdown
Raw Normal View History

2014-04-15 09:54:01 +01:00
# mysqldump
> Backups mysql databases
- creating a backup
`mysqldump -u {{user}} -p{{password}} {{database_name}} > {{filename.sql}}`
2014-04-15 09:54:01 +01:00
- restoring a backup
`mysql -u {{user}} -p{{password}} {{database_name}} < {{filename.sql}}`