Skip to content

Commit

Permalink
Added workaround for MySQL Bug #78957
Browse files Browse the repository at this point in the history
 Adds --log-bin-index option to --verbose --help command to prevent errors when binary logging is enabled
  • Loading branch information
ltangvald committed Oct 27, 2015
1 parent 10f65e6 commit 07fbe13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 5.7/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

if [ "$1" = 'mysqld' ]; then
# Get config
DATADIR="$("$@" --verbose --help 2>/dev/null | awk '$1 == "datadir" { print $2; exit }')"
DATADIR="$("$@" --verbose --help --log-bin-index=/tmp/tmp.index 2>/dev/null | awk '$1 == "datadir" { print $2; exit }')"

if [ ! -d "$DATADIR/mysql" ]; then
if [ -z "$MYSQL_ROOT_PASSWORD" -a -z "$MYSQL_ALLOW_EMPTY_PASSWORD" ]; then
Expand Down

0 comments on commit 07fbe13

Please sign in to comment.