1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:17:57 +01:00
tldr/pages/common/mysqldump.md

12 lines
232 B
Markdown
Raw Normal View History

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