tldr/pages/common/mysqldump.md
Vlad 2479464ff3 Fixes pull request #433 and #434
Author:    Vlad <vpoltava@gmail.com>
Date:      Mon Dec 28 22:49:37 2015 +0000
2015-12-30 09:56:34 +00:00

298 B

mysqldump

Backups mysql databases

  • Create a backup, user will be prompted for a password

mysqldump -u {{user}} --password {{database_name}} > {{filename.sql}}

  • Restoring a backup, user will be prompted for a password

mysql -u {{user}} --password {{database_name}} < {{filename.sql}}