Skip to content

Commit dfef0ca

Browse files
missing $DBHOST to mysql client - error Cant connect to local MySQL server through socket
1 parent 6a0df23 commit dfef0ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zabbix-dump

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ case $DBTYPE in
278278
mysql)
279279
[ ! -z "$MYSQL_CONFIG" ] && DB_OPTS=("${DB_OPTS[@]}" --defaults-extra-file="$MYSQL_CONFIG")
280280
[ ! -z "$DBSOCKET" ] && DB_OPTS=("${DB_OPTS[@]}" -S $DBSOCKET)
281+
[ ! -z "$DBHOST" ] && DB_OPTS=("${DB_OPTS[@]}" -h $DBHOST)
281282
[ ! -z "$DBUSER" ] && DB_OPTS=("${DB_OPTS[@]}" -u $DBUSER)
282283
[ ! -z "$DBPASS" ] && DB_OPTS=("${DB_OPTS[@]}" -p"$DBPASS")
283284
DB_OPTS=("${DB_OPTS[@]}" -P"$DBPORT")

0 commit comments

Comments
 (0)