Skip to content

Commit

Permalink
set sql-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Oct 19, 2021
1 parent 2a45703 commit e99f340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/setup-db/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ startMySQL() {
echo "Start MySQL $VERSION"
docker_run="$docker_run -e MYSQL_RANDOM_ROOT_PASSWORD=true -e MYSQL_USER=$INPUT_USER -e MYSQL_PASSWORD=$INPUT_PASSWORD"
docker_run="$docker_run -e MYSQL_DATABASE=$INPUT_DB"
docker_run="$docker_run -d -p 3306:3306 mysql:$VERSION --port=3306"
docker_run="$docker_run -d -p 3306:3306 mysql:$VERSION --port=3306 --sql-mode=''"

if [ "$VERSION" = "5.6" ]; then
docker_run="$docker_run --character-set-server=utf8 --collation-server=utf8_general_ci"
Expand Down

0 comments on commit e99f340

Please sign in to comment.