Skip to content

Commit b70f068

Browse files
author
Tamas Gere
committed
Select default database for import entrypoint.sh
1 parent 84e80f9 commit b70f068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if [ "$1" = 'mysqld' ]; then
108108
$install_devnull "$PASSFILE"
109109
# Define the client command used throughout the script
110110
# "SET @@SESSION.SQL_LOG_BIN=0;" is required for products like group replication to work properly
111-
mysql=( mysql --defaults-extra-file="$PASSFILE" --protocol=socket -uroot -hlocalhost --socket="$SOCKET" --init-command="SET @@SESSION.SQL_LOG_BIN=0;")
111+
mysql=( mysql --defaults-extra-file="$PASSFILE" --protocol=socket -uroot -hlocalhost --socket="$SOCKET" --init-command="SET @@SESSION.SQL_LOG_BIN=0;" $MYSQL_DATABASE )
112112

113113
for i in {30..0}; do
114114
if mysqladmin --socket="$SOCKET" ping &>/dev/null; then

0 commit comments

Comments
 (0)