diff --git a/sql/init-mysql.sh b/sql/init-mysql.sh index b73bcf1..602b168 100755 --- a/sql/init-mysql.sh +++ b/sql/init-mysql.sh @@ -3,12 +3,12 @@ export MYSQL_PWD=root # AUTH="--defaults-extra-file=./sql/my-gha.cnf" -mysql -e 'DROP DATABASE nictool;' || exit 1 -mysql -e 'CREATE DATABASE nictool;' || exit 1 +mysql --user=root -e 'DROP DATABASE nictool;' || exit 1 +mysql --user=root -e 'CREATE DATABASE nictool;' || exit 1 for f in './sql/*.sql'; do - cat $f | mysql nictool || exit 1 + cat $f | mysql --user=root nictool || exit 1 done exit 0 \ No newline at end of file