From 27e99881b522fc5de82a7e4684cd915f0520c1d8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 22 Jan 2017 17:11:04 +0000 Subject: 'Using password on command line is insecure' --- scripts/checkMySQLrepl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/checkMySQLrepl') diff --git a/scripts/checkMySQLrepl b/scripts/checkMySQLrepl index b9081f8..5a6857a 100755 --- a/scripts/checkMySQLrepl +++ b/scripts/checkMySQLrepl @@ -1,5 +1,5 @@ -mysql -uroot -pne65dq mysql -hdefiant -e 'show master status' -mysql -uroot -pne65dq mysql -hfirebrand -e 'show master status' +mysql --defaults-extra-file=/root/.my.cnf mysql -hdefiant -e 'show master status' +mysql --defaults-extra-file=/root/.my.cnf mysql -hfirebrand -e 'show master status' -mysql -uroot -pne65dq mysql -hdefiant -e 'show slave status' --vertical -mysql -uroot -pne65dq mysql -hfirebrand -e 'show slave status' --vertical +mysql --defaults-extra-file=/root/.my.cnf mysql -hdefiant -e 'show slave status' --vertical +mysql --defaults-extra-file=/root/.my.cnf mysql -hfirebrand -e 'show slave status' --vertical -- cgit v1.2.3