Skip to content

Commit

Permalink
mac mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 19, 2024
1 parent 10660b8 commit 8f97f13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
brew install mysql
brew tap homebrew/services
brew services start mysql
mysqladmin --user=root --password='' --protocol=tcp password 'root'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
Expand Down
16 changes: 15 additions & 1 deletion sql/init-mysql.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#!/bin/sh

export MYSQL_PWD=root

case "$(uname -s)" in
Linux*)
export MYSQL_PWD=root
;;
Darwin*)
export MYSQL_PWD=""
# mysqladmin --user=root --password='' --protocol=tcp password 'root'
;;
CYGWIN*|MINGW*|MINGW32*|MSYS*)
export MYSQL_PWD=""
# mysqladmin --user=root --password='' --protocol=tcp password 'root'
;;
esac

# AUTH="--defaults-extra-file=./sql/my-gha.cnf"

# mysql --user=root -e 'DROP DATABASE IF EXISTS nictool;' || exit 1
Expand Down

0 comments on commit 8f97f13

Please sign in to comment.