Skip to content

Commit 1612c57

Browse files
authored
Merge pull request #728 from marc-mabe/patch-1
Execute SQL in entrypoint with "--comments"
2 parents 79fb37b + b0a0e54 commit 1612c57

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

5.6/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

5.7/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

8.0/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ docker_process_sql() {
208208
set -- --database="$MYSQL_DATABASE" "$@"
209209
fi
210210

211-
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" "$@"
211+
mysql --defaults-extra-file=<( _mysql_passfile "${passfileArgs[@]}") --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" --comments "$@"
212212
}
213213

214214
# Initializes database with timezone info and root password, plus optional extra db/user

0 commit comments

Comments
 (0)