Skip to content

Commit 07fbe13

Browse files
committed
Added workaround for MySQL Bug #78957
Adds --log-bin-index option to --verbose --help command to prevent errors when binary logging is enabled
1 parent 10f65e6 commit 07fbe13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5.7/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88

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

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

0 commit comments

Comments
 (0)