Update --createdb to use the right host/port 04/504/1
authorAdam Israel <adam.israel@canonical.com>
Tue, 4 Oct 2016 19:03:31 +0000 (12:03 -0700)
committerAdam Israel <adam.israel@canonical.com>
Tue, 4 Oct 2016 19:04:29 +0000 (12:04 -0700)
Signed-off-by: Adam Israel <adam.israel@canonical.com>
database_utils/init_mano_db.sh

index 224269b..f7401a0 100755 (executable)
@@ -129,7 +129,7 @@ if [ -n "${CREATEDB}" ]; then
     echo "    deleting previous database ${DBNAME}"
     echo "DROP DATABASE IF EXISTS ${DBNAME}" | mysql $DEF_EXTRA_FILE_PARAM $DBHOST_ $DBPORT_
     echo "    creating database ${DBNAME}"
-    mysqladmin $DEF_EXTRA_FILE_PARAM -s create ${DBNAME} || exit 1
+    mysqladmin $DEF_EXTRA_FILE_PARAM $DBHOST_ $DBPORT_ -s create ${DBNAME} || exit 1
 fi
 
 echo "    loading ${DIRNAME}/${DBNAME}_structure.sql"