diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 17:11:04 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 17:22:16 +0000 |
commit | 27e99881b522fc5de82a7e4684cd915f0520c1d8 (patch) | |
tree | f92d7b8da413ad2241a22f878ce18a19c8df41ef /scripts | |
parent | Remove public view (diff) | |
download | config-27e99881b522fc5de82a7e4684cd915f0520c1d8.tar.bz2 config-27e99881b522fc5de82a7e4684cd915f0520c1d8.tar.xz config-27e99881b522fc5de82a7e4684cd915f0520c1d8.zip |
'Using password on command line is insecure'
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkMySQLrepl | 8 |
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 |