1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 19:17:58 +01:00
tldr/pages/common/mysqldump.md
2014-09-29 15:22:35 +03:00

233 B

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