Browse Source

* fix multiline copy paste

master
dimti 4 years ago
parent
commit
b71630bf0e
  1. 4
      readbinlog.sh

4
readbinlog.sh

@ -20,6 +20,4 @@ replication_user=`cat ./.remote.my.cnf | grep user | cut -d'=' -f2`
replication_password=`cat ./.remote.my.cnf | grep password | cut -d'=' -f2` replication_password=`cat ./.remote.my.cnf | grep password | cut -d'=' -f2`
replication_host=`cat ./.remote.my.cnf | grep host | cut -d'=' -f2` replication_host=`cat ./.remote.my.cnf | grep host | cut -d'=' -f2`
mysql --defaults-extra-file=./.my.cnf -e "CHANGE MASTER TO MASTER_HOST = '$replication_hos
t', MASTER_USER = '$replication_user', MASTER_PASSWORD = '$replication_password', MASTER_L
OG_FILE = '$remote_master_log_file', MASTER_LOG_POS = $remote_master_log_pos;"
mysql --defaults-extra-file=./.my.cnf -e "CHANGE MASTER TO MASTER_HOST = '$replication_host', MASTER_USER = '$replication_user', MASTER_PASSWORD = '$replication_password', MASTER_LOG_FILE = '$remote_master_log_file', MASTER_LOG_POS = $remote_master_log_pos;"
Loading…
Cancel
Save