Skip to content

Commit

Permalink
Merge pull request docker-library#358 from infosiftr/extra-mysqld-flags
Browse files Browse the repository at this point in the history
Pass extra mysqld flags to mysql_install_db
  • Loading branch information
yosifkit authored Dec 21, 2017
2 parents 9357906 + 36f2030 commit 9812fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 5.5/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm --basedir=/usr/local/mysql
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm --basedir=/usr/local/mysql "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down
3 changes: 2 additions & 1 deletion 5.6/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
mkdir -p "$DATADIR"

echo 'Initializing database'
mysql_install_db --datadir="$DATADIR" --rpm --keep-my-cnf
# "Other options are passed to mysqld." (so we pass all "mysqld" arguments directly here)
mysql_install_db --datadir="$DATADIR" --rpm --keep-my-cnf "${@:2}"
echo 'Database initialized'

SOCKET="$(_get_config 'socket' "$@")"
Expand Down

0 comments on commit 9812fd1

Please sign in to comment.