Fix sequel open command not using the dbname config

This commit is contained in:
Eric Enold 2023-02-07 07:14:29 +01:00
parent f783ef46b6
commit 0dc643c213

View file

@ -147,7 +147,7 @@ run_client() {
then
if [ -d "/Applications/Sequel Ace.app" ] && [ "${USE_CLI}" != true ]
then
open "mysql://$2:$3@${SQL_PROXY_HOST}:6033" -a "Sequel Ace"
open "mysql://$2:$3@${SQL_PROXY_HOST}:6033/${4}" -a "Sequel Ace"
elif which mysql >/dev/null 2>&1
then
mysql --protocol=TCP -u "$2" -p"$3" -h "${SQL_PROXY_HOST}" "${4:+-D$4}" -P 6033