Skip to content

Commit

Permalink
Select default database for import entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamas Gere committed Dec 17, 2024
1 parent 84e80f9 commit b70f068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if [ "$1" = 'mysqld' ]; then
$install_devnull "$PASSFILE"
# Define the client command used throughout the script
# "SET @@SESSION.SQL_LOG_BIN=0;" is required for products like group replication to work properly
mysql=( mysql --defaults-extra-file="$PASSFILE" --protocol=socket -uroot -hlocalhost --socket="$SOCKET" --init-command="SET @@SESSION.SQL_LOG_BIN=0;")
mysql=( mysql --defaults-extra-file="$PASSFILE" --protocol=socket -uroot -hlocalhost --socket="$SOCKET" --init-command="SET @@SESSION.SQL_LOG_BIN=0;" $MYSQL_DATABASE )

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

0 comments on commit b70f068

Please sign in to comment.