From 2479464ff365bb77210e76366de12849b4084c27 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 28 Dec 2015 22:49:37 +0000 Subject: [PATCH] Fixes pull request #433 and #434 Author: Vlad Date: Mon Dec 28 22:49:37 2015 +0000 --- pages/common/mysql.md | 4 ++-- pages/common/mysqldump.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/mysql.md b/pages/common/mysql.md index 8fe41fd52..8c8ea598f 100644 --- a/pages/common/mysql.md +++ b/pages/common/mysql.md @@ -6,9 +6,9 @@ `mysql {{database_name}}` -- Connect to a database using credentials +- Connect to a database, user will be prompted for a password -`mysql -u {{user}} -p{{password}} {{database_name}}` +`mysql -u {{user}} --password {{database_name}}` - Execute SQL statements in a script file (batch file) diff --git a/pages/common/mysqldump.md b/pages/common/mysqldump.md index 994edb5ad..49786b8f6 100644 --- a/pages/common/mysqldump.md +++ b/pages/common/mysqldump.md @@ -2,10 +2,10 @@ > Backups mysql databases -- creating a backup +- Create a backup, user will be prompted for a password -`mysqldump -u {{user}} -p{{password}} {{database_name}} > {{filename.sql}}` +`mysqldump -u {{user}} --password {{database_name}} > {{filename.sql}}` -- restoring a backup +- Restoring a backup, user will be prompted for a password -`mysql -u {{user}} -p{{password}} {{database_name}} < {{filename.sql}}` +`mysql -u {{user}} --password {{database_name}} < {{filename.sql}}`