diff --git a/pages/common/mysqldump.md b/pages/common/mysqldump.md new file mode 100644 index 0000000000..d6f2edb99f --- /dev/null +++ b/pages/common/mysqldump.md @@ -0,0 +1,11 @@ +# 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}}`