From b78537679ad1b78ca692569170cb185b4e27df1b Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sat, 17 Feb 2024 19:33:09 -0800 Subject: [PATCH] enable mysql service --- sql/init-mysql.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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