Skip to content

Commit

Permalink
enable mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 18, 2024
1 parent 590aa46 commit b785376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/init-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b785376

Please sign in to comment.