summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-22 17:11:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-22 17:22:16 +0000
commit27e99881b522fc5de82a7e4684cd915f0520c1d8 (patch)
treef92d7b8da413ad2241a22f878ce18a19c8df41ef /scripts
parentRemove public view (diff)
downloadconfig-27e99881b522fc5de82a7e4684cd915f0520c1d8.tar.bz2
config-27e99881b522fc5de82a7e4684cd915f0520c1d8.tar.xz
config-27e99881b522fc5de82a7e4684cd915f0520c1d8.zip
'Using password on command line is insecure'
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkMySQLrepl8
1 files changed, 4 insertions, 4 deletions
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