Skip to content

Commit

Permalink
[*] end without exit
Browse files Browse the repository at this point in the history
end without exit
  • Loading branch information
breeze2 committed Oct 17, 2017
1 parent b5be764 commit 2dcd299
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion volumes/mha_share/scripts/mysql_grant_slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ mysql -u root -p$MYSQL_ROOT_PASSWORD <<EOSQL
GRANT ALL ON *.* TO myuser@'10.5.0.%' IDENTIFIED BY 'mypass';
GRANT REPLICATION SLAVE ON *.* TO 'myslave'@'10.5.0.%' IDENTIFIED BY 'myslave';
reset master;
exit;
EOSQL
1 change: 0 additions & 1 deletion volumes/mha_share/scripts/mysql_start_slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ mysql -u root -p$MYSQL_ROOT_PASSWORD <<EOSQL
GRANT ALL ON *.* TO myuser@'10.5.0.%' IDENTIFIED BY 'mypass';
CHANGE MASTER TO MASTER_HOST='10.5.0.10', MASTER_USER='myslave', MASTER_PASSWORD='myslave', MASTER_CONNECT_RETRY=60;
start slave;
exit;
EOSQL

0 comments on commit 2dcd299

Please sign in to comment.