Skip to content
Snippets Groups Projects
Commit 26d744cc authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: reinsert setting of a root mysql connection

parent 4bed61fb
Branches
Tags
No related merge requests found
......@@ -24,8 +24,20 @@
# To fail fast, but beware https://mywiki.wooledge.org/BashFAQ/105
source utils/load_settings.sh
source .config || true
if [ -z $LOGIN_PATH ] ; then
MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT}
--user=${MYSQL_USER}
--password=${MYSQL_USER_PASSWORD}"
else
MYSQL_CONNECTION="--login-path=$LOGIN_PATH"
fi
INSTALL_SQL_FILE="db_2_0.sql"
SQL="$MYSQL_CMD $MYSQL_CONNECTION"
set -e
function fail() {
......@@ -144,8 +156,6 @@ function restore_db() {
}
function test-connection() {
echo "halllooooo"
echo $SQL
$SQL -e "select 0;"
}
......@@ -209,11 +219,6 @@ function _db_exists() {
&& return 0 || return 1
}
source .config || true
INSTALL_SQL_FILE="db_2_0.sql"
SQL="$MYSQL_CMD $MYSQL_CONNECTION"
case $1 in
"drop") drop $2 ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment