Skip to content

Commit

Permalink
test: switch the auth protocol of test mysql database to the one that…
Browse files Browse the repository at this point in the history
…'s supported (#323)
  • Loading branch information
cyjake authored Jul 15, 2022
1 parent ab8475f commit 4db5159
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ ALTER TABLE users CHANGE COLUMN birthday birthday DATE;
ALTER TABLE users CHANGE COLUMN sex sex CHAR;
EOF

# https://stackoverflow.com/a/50377944/179691
cat <<EOF | mysql -h127.0.0.1 -P${MYSQL_PORT:-3306} -uroot
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
EOF

##
# PostgreSQL
createdb leoric > /dev/null 2>&1 || true
Expand Down

0 comments on commit 4db5159

Please sign in to comment.