Skip to content

Commit a312dc6

Browse files
authored
Replaced deprecated MySQL aliases for MariaDB tests (#1200)
This fixes the recently failing GitHub Actions test workflows, in which the MariaDB Docker container failed to start. The issue seems to have been using the `mysqladmin` command for health checking in `test.yml`, probably due to the following change in MariaDB v11.0.1: (Copied from https://mariadb.com/kb/en/mariadb-11-0-1-release-notes/) """ ## Docker Official Images * 11.0, unlike previous version, no longer includes mysql named compatible executable symlinks inside the container. """ https://mariadb.com/kb/en/mysqladmin/ mentions that `mariadb-admin` is now the new name of the script (previously `mysqladmin`). Also replaced the `MYSQL_DATABASE` and `MYSQL_ROOT_PASSWORD` environment variables with their new names (based on the docs: https://mariadb.com/kb/en/mariadb-server-docker-official-image-environment-variables/).
1 parent ae6f25d commit a312dc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
mariadb:
6464
image: mariadb:latest
6565
env:
66-
MYSQL_DATABASE: mariadb
67-
MYSQL_ROOT_PASSWORD: mariadb
66+
MARIADB_DATABASE: mariadb
67+
MARIADB_ROOT_PASSWORD: mariadb
6868
ports:
6969
- 3307:3306
70-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
70+
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3
7171

7272
steps:
7373
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)