mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed a hard coded mysql host ip address
This commit is contained in:
@@ -68,7 +68,7 @@ fi
|
|||||||
|
|
||||||
MYSQL_ADDR="$MYSQL_IP:$PORT"
|
MYSQL_ADDR="$MYSQL_IP:$PORT"
|
||||||
|
|
||||||
MASTER_STATUS=`mysql -ucanal -pcanal -h192.168.22.89 -e 'show master status' 2>/dev/null | head -n 2 | tail -n 1`
|
MASTER_STATUS=`mysql -ucanal -pcanal -h$MYSQL_IP -P$PORT -e 'show master status' 2>/dev/null | head -n 2 | tail -n 1`
|
||||||
|
|
||||||
LOG_FILE=`echo "$MASTER_STATUS" | cut -f 1`
|
LOG_FILE=`echo "$MASTER_STATUS" | cut -f 1`
|
||||||
LOG_POS=`echo "$MASTER_STATUS" | cut -f 2`
|
LOG_POS=`echo "$MASTER_STATUS" | cut -f 2`
|
||||||
|
|||||||
Reference in New Issue
Block a user