Skip to content

Commit

Permalink
missing $DBHOST to mysql client - error Cant connect to local MySQL s…
Browse files Browse the repository at this point in the history
…erver through socket
  • Loading branch information
tiago-cruz-movile committed Mar 20, 2019
1 parent 6a0df23 commit dfef0ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zabbix-dump
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ case $DBTYPE in
mysql)
[ ! -z "$MYSQL_CONFIG" ] && DB_OPTS=("${DB_OPTS[@]}" --defaults-extra-file="$MYSQL_CONFIG")
[ ! -z "$DBSOCKET" ] && DB_OPTS=("${DB_OPTS[@]}" -S $DBSOCKET)
[ ! -z "$DBHOST" ] && DB_OPTS=("${DB_OPTS[@]}" -h $DBHOST)
[ ! -z "$DBUSER" ] && DB_OPTS=("${DB_OPTS[@]}" -u $DBUSER)
[ ! -z "$DBPASS" ] && DB_OPTS=("${DB_OPTS[@]}" -p"$DBPASS")
DB_OPTS=("${DB_OPTS[@]}" -P"$DBPORT")
Expand Down

0 comments on commit dfef0ca

Please sign in to comment.