diff --git a/ngcp-update-db-schema b/ngcp-update-db-schema index 11441179..94c64c1b 100755 --- a/ngcp-update-db-schema +++ b/ngcp-update-db-schema @@ -35,7 +35,7 @@ if [ -z "${SIPWISE_DB_PASSWORD}" ] ; then exit 1 fi -if ! mysql -e "GRANT ALL PRIVILEGES ON *.* TO sipwise@localhost IDENTIFIED BY '${SIPWISE_DB_PASSWORD}' WITH GRANT OPTION;" ; then +if ! mysql -usipwise -p"${SIPWISE_DB_PASSWORD}" -e "GRANT ALL PRIVILEGES ON *.* TO sipwise@localhost IDENTIFIED BY '${SIPWISE_DB_PASSWORD}' WITH GRANT OPTION;" ; then echo 'Error: grants for user sipwise on localhost could not be applied.' >&2 exit 1 fi