fix: support utf8mb4 across MySQL and MariaDB
This commit is contained in:
1 parent
cce17c5fa4
commit
d34894c9cd
28 files changed
+224
-121
No files matched your search
@@ -69,7 +69,10 @@ mysql_id=$(docker create --name "$mysql" --network "$network_id" --network-alias
|
||||
--env MYSQL_ROOT_PASSWORD="$root_password" "$MYSQL_IMAGE")
|
||||
docker start "$mysql_id" >/dev/null
|
||||
attempt=0
|
||||
until docker exec --env MYSQL_PWD="$root_password" "$mysql_id" mysql --host=127.0.0.1 --user=root --execute 'SELECT 1' >/dev/null 2>&1; do
|
||||
until docker exec --env MYSQL_PWD="$root_password" "$mysql_id" sh -c '
|
||||
client=$(command -v mariadb || command -v mysql)
|
||||
exec "$client" --host=127.0.0.1 --user=root --execute "SELECT 1"
|
||||
' >/dev/null 2>&1; do
|
||||
attempt=$((attempt + 1))
|
||||
if [ "$attempt" -ge 120 ]; then
|
||||
echo "mysql did not become ready" >&2
|
||||
|
||||
Reference in new issue
Block a user