SQL settings add PORT
This commit is contained in:
parent
076c57bc3e
commit
645a61c521
@ -4,5 +4,6 @@ dbname="tt_test"
|
||||
dbhost="localhost"
|
||||
dbuser="root"
|
||||
dbpwd=""
|
||||
dbport=
|
||||
|
||||
moviedir="/data/share/Filme"
|
||||
|
@ -38,6 +38,7 @@ function db_query() {
|
||||
args+=" -h$dbhost"
|
||||
args+=" -u$dbuser"
|
||||
[ -n "$dbpwd" ] && args+=" -p$dbpwd"
|
||||
[ -n "$dbport" ] && args+=" -P$dbport"
|
||||
args+=" $dbname"
|
||||
[ $DEBUG == $TRUE ] && echo $@ >&2
|
||||
echo $@ | mysql $args
|
||||
|
Loading…
Reference in New Issue
Block a user