PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
FEATURE (databases): Accept MySQL 26 and MariaDB 13, and refuse a line we ship no client for
Rostislav Dugin54dfeb6b8d35
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.ymlindex a02f079c..9aeb3617 100644--- a/.github/workflows/ci-release.yml+++ b/.github/workflows/ci-release.yml@@ -249,10 +249,13 @@ jobs:steps:- name: Free disk space for database imagesrun: |- # The suite pre-pulls ~19 GB of database images, which the stock runner's free space only- # just covers. These two preinstalled toolchains are unused here and reclaim ~11 GB. The- # hosted tool cache is deliberately left alone — setup-go installs into it below.+ # The suite pre-pulls ~22 GB of database images, which the stock runner's free space does+ # not cover on its own. dotnet and the Android SDK are unused here and reclaim ~11 GB;+ # the four images MySQL 26 and MariaDB 13, 5.5 and 10.1 added ~3 GB on top of what the+ # first two lines used to be enough for, so Haskell and Swift go as well (~8 GB more).+ # The hosted tool cache is deliberately left alone — setup-go installs into it below.sudo rm -rf /usr/share/dotnet /usr/local/lib/android+ sudo rm -rf /opt/ghc /usr/local/.ghcup /usr/share/swiftdf -h /- name: Check out codediff --git a/README.md b/README.mdindex 728019cb..ff60cca0 100644--- a/README.md+++ b/README.md@@ -112,8 +112,8 @@ Databasus performs a real restore to confirm backups are usable, not just intact### 💾 **Supported databases**- **PostgreSQL**: 14, 15, 16, 17 and 18 (physical and logical)-- **MySQL**: 5.7, 8.0, 8.4 and 9 (logical only)-- **MariaDB**: 10, 11 and 12 (logical only)+- **MySQL**: 5.7 (x86-64 only), 8.0, 8.4, 9 and 26 (logical only)+- **MariaDB**: 5.5, 10, 11, 12 and 13 (logical only)- **MongoDB**: 4.2+, 5, 6, 7 and 8 (logical only)### 🐳 **Self-hosted & secure**diff --git a/assets/readme/README.es.md b/assets/readme/README.es.mdindex 9e556f2b..5c7f706a 100644--- a/assets/readme/README.es.md+++ b/assets/readme/README.es.md@@ -112,8 +112,8 @@ Databasus ejecuta una restauración real para confirmar que las copias sirven, e### 💾 **Bases de datos compatibles**- **PostgreSQL**: 14, 15, 16, 17 y 18 (física y lógica)-- **MySQL**: 5.7, 8.0, 8.4 y 9 (solo lógica)-- **MariaDB**: 10, 11 y 12 (solo lógica)+- **MySQL**: 5.7 (solo x86-64), 8.0, 8.4, 9 y 26 (solo lógica)+- **MariaDB**: 5.5, 10, 11, 12 y 13 (solo lógica)- **MongoDB**: 4.2+, 5, 6, 7 y 8 (solo lógica)### 🐳 **Autoalojado y seguro**diff --git a/assets/readme/README.fr.md b/assets/readme/README.fr.mdindex 2c5b331c..6967ea66 100644--- a/assets/readme/README.fr.md+++ b/assets/readme/README.fr.md@@ -112,8 +112,8 @@ Databasus effectue une vraie restauration pour confirmer que les sauvegardes son### 💾 **Bases de données prises en charge**- **PostgreSQL** : 14, 15, 16, 17 et 18 (physique et logique)-- **MySQL** : 5.7, 8.0, 8.4 et 9 (logique uniquement)-- **MariaDB** : 10, 11 et 12 (logique uniquement)+- **MySQL** : 5.7 (x86-64 uniquement), 8.0, 8.4, 9 et 26 (logique uniquement)+- **MariaDB** : 5.5, 10, 11, 12 et 13 (logique uniquement)- **MongoDB** : 4.2+, 5, 6, 7 et 8 (logique uniquement)### 🐳 **Auto-hébergé et sûr**diff --git a/assets/readme/README.pt.md b/assets/readme/README.pt.mdindex 01cbbb6e..da52e4c2 100644--- a/assets/readme/README.pt.md+++ b/assets/readme/README.pt.md@@ -112,8 +112,8 @@ O Databasus faz uma restauração de verdade para confirmar que os backups serve### 💾 **Bases de dados suportadas**- **PostgreSQL**: 14, 15, 16, 17 e 18 (físico e lógico)-- **MySQL**: 5.7, 8.0, 8.4 e 9 (apenas lógico)-- **MariaDB**: 10, 11 e 12 (apenas lógico)+- **MySQL**: 5.7 (apenas x86-64), 8.0, 8.4, 9 e 26 (apenas lógico)+- **MariaDB**: 5.5, 10, 11, 12 e 13 (apenas lógico)- **MongoDB**: 4.2+, 5, 6, 7 e 8 (apenas lógico)### 🐳 **Self-hosted e seguro**diff --git a/assets/readme/README.ru.md b/assets/readme/README.ru.mdindex 57c23f92..63c0ced6 100644--- a/assets/readme/README.ru.md+++ b/assets/readme/README.ru.md@@ -112,8 +112,8 @@ Databasus по-настоящему восстанавливает бекап,### 💾 **Поддерживаемые базы данных**- **PostgreSQL**: 14, 15, 16, 17 и 18 (физические и логические)-- **MySQL**: 5.7, 8.0, 8.4 и 9 (только логические)-- **MariaDB**: 10, 11 и 12 (только логические)+- **MySQL**: 5.7 (только x86-64), 8.0, 8.4, 9 и 26 (только логические)+- **MariaDB**: 5.5, 10, 11, 12 и 13 (только логические)- **MongoDB**: 4.2+, 5, 6, 7 и 8 (только логические)### 🐳 **Self-hosted и безопасно**diff --git a/assets/readme/README.zh.md b/assets/readme/README.zh.mdindex 069af5c7..c490d1b7 100644--- a/assets/readme/README.zh.md+++ b/assets/readme/README.zh.md@@ -112,8 +112,8 @@ Databasus 会真正执行一次恢复,确认备份可用,而不只是检查### 💾 **支持的数据库**- **PostgreSQL**:14、15、16、17 和 18(物理和逻辑)-- **MySQL**:5.7、8.0、8.4 和 9(仅逻辑)-- **MariaDB**:10、11 和 12(仅逻辑)+- **MySQL**:5.7(仅 x86-64)、8.0、8.4、9 和 26(仅逻辑)+- **MariaDB**:5.5、10、11、12 和 13(仅逻辑)- **MongoDB**:4.2+、5、6、7 和 8(仅逻辑)### 🐳 **自托管且安全**diff --git a/assets/tools/AGENTS.md b/assets/tools/AGENTS.mdnew file mode 100644index 00000000..16065728--- /dev/null+++ b/assets/tools/AGENTS.md@@ -0,0 +1,134 @@+# Client binaries — rules for changing this tree++Every file under `assets/tools/` is a vendored third-party binary that runs in+production. ADR-0005 explains why they are committed instead of installed at+image build time. Two rules follow from that and apply to every change here:+the bytes in the repository are the bytes that ship, so a binary must be+verified in the runtime environment rather than on a developer machine, and a+directory name is a label chosen by us, which the startup check holds you to+but which nothing enforces while you are assembling the bundle.++The backend resolves a binary as+`assets/tools/<arch>/<engine>/<engine>-<bundle>/bin/<command>`, where `<arch>`+is `x64` for `linux/amd64` and `arm` for `linux/arm64`. The mapping lives in+`backend/internal/util/tools/paths.go`.++## Before adding a version++Adding an engine version is mostly about the binary, not about the code that+reads the version. Work through this list before committing anything; the+first two items often end the job early.++- [ ] **A new upstream release line needs a client here before it is+ supported.** Until the bundle lands, a server on that line is refused at+ the connection test, by design: we never dump a server with a client from+ an older line. Both engines open a line roughly once a quarter, so this+ is the recurring task that keeps that promise.+- [ ] **Is this a new line, or a new release inside a line we already serve?**+ Only a new line needs a bundle. A newer release inside a served line —+ MariaDB 13.2 against our 13.0 client, MySQL 26.10 against our 26.7 one —+ keeps working, and the bundle is refreshed when there is a reason to.+ MariaDB's modern client additionally serves every line from 10.2 up by+ designation, which is recorded in `README.md` in this directory.+- [ ] **Is the release line one upstream still patches?** Short-term and+ innovation releases live about a quarter. Prefer the long-term release of+ that era; bundle a short-term release only when users run it. When a line+ we bundle later gets a long-term release, refresh the bundle to it rather+ than adding an identity.+- [ ] **Do binaries exist for both architectures?** Check, in order: the+ vendor's architecture-independent tarball, the vendor's Debian+ repository, the vendor's Ubuntu repository, then RPMs for an older+ enterprise distribution. Do not conclude a build is unavailable after+ checking one of them.+- [ ] **Will the binary start in the runtime image?** The image is+ `debian:bookworm-slim` with glibc 2.36. Compare with+ `objdump -T <binary> | grep -oE 'GLIBC_2\.[0-9]+' | sort -uV | tail -1`+ and list the shared libraries with `objdump -p <binary> | grep NEEDED`.+ Every library must already be in the image; see the table in+ `README.md` in this directory.+- [ ] **Know which of the two identity shapes the engine uses.** MySQL's+ identity doubles as the name of its bundle directory, because each MySQL+ line gets a client of its own. MariaDB keeps two values, a server+ identity and a client version, because one client serves many server+ lines. Follow the engine's existing shape rather than introducing the+ other one, and never record a version the server did not report.+- [ ] **Add the bundle and the identity together.** The new directory goes into+ the bundle set the startup check walks, in+ `backend/internal/util/tools/mysql.go` or `mariadb.go`, and the identity+ it serves is mapped to it. Detection refuses any version with no bundle,+ so these two land in one change or the version stays unsupported.+- [ ] **Check both architectures before claiming the version is supported.**+ A version whose client exists for only one architecture is supported only+ there, and is refused on the other. `assets/tools/arm/mysql/` has no 5.7+ bundle for that reason.+- [ ] **Do not look for version tables to extend; there are none left.** The+ restore downgrade order is computed from the numbers in the identity, the+ MySQL compression choice is derived from the identity rather than matched+ against a list of known ones, and the interface renders the identity+ string itself. All three used to be lookup tables whose missing entry+ changed behavior quietly. If you find yourself adding a version to a+ table, the table is the bug.+- [ ] **An identity names a line, so its digits are not a promise about the+ binary.** Identity `26` covers every MySQL 26.x and `13.0` every MariaDB+ 13.x, while the bundle holds one patch. That is intended. What is not+ intended is a bundle holding a version from a *different* line, which the+ startup check now rejects.+- [ ] **Add the identity constant on both sides.** The backend constant and the+ one in `frontend/src/entity/databases/model/<engine>/` name the same+ value, and the enumeration is the type of the field, so a missing+ constant is a build error rather than a blank field.+- [ ] **Add the version to the test matrices.** A unit test of the version+ mapping proves nothing about a dump. The matrices in+ `backend/internal/features/databases/databases/<engine>/model_test.go`+ and `backend/internal/features/tests/logical/<engine>/backup_restore_test.go`+ boot a real server of each version.+- [ ] **Update the supported-version lists** in the root `README.md` and in all+ five copies under `assets/readme/`, and the tables in `README.md` in this+ directory. `assets/readme/AGENTS.md` requires every copy to follow the+ English file.++## Refreshing a patch level++Refreshing is lower risk than adding a version, but it changes the client for+every server already using that bundle, so it is not a silent operation.+For MariaDB, `tools/refresh-mariadb-bundle.sh <bundle> <arch>` does the work;+edit the pinned package version in it rather than passing one in.++- [ ] Keep every binary within one bundle on the same upstream build. A+ `pg_dump` older than its sibling `pg_basebackup` is how issue #725+ survived unnoticed.+- [ ] Pin the exact upstream package version in the refresh script. Installing+ "the newest patch of this line" makes the result depend on the day it+ ran, and two architectures refreshed a week apart then disagree.+- [ ] Refresh both architectures from the same upstream source in the same+ change. Mixing sources is how one directory name comes to mean two+ different builds, and the difference surfaces as an engine-specific+ dump failure on one architecture only.+- [ ] Run the refreshed binary in the runtime base image before committing:++ docker run --rm --platform linux/amd64 -v "$PWD/assets/tools:/tools:ro" \+ debian:bookworm-slim bash -c 'apt-get update -qq && \+ apt-get install -y -qq libedit2 libncurses6 libtinfo6 libssl3 >/dev/null && \+ /tools/x64/<engine>/<bundle>/bin/<command> --version'++- [ ] Confirm the executable bit is recorded in the index. `git ls-files -s`+ must show `100755`; a binary committed as `100644` fails at runtime and+ not at build time.+- [ ] Run the engine's whole matrix, not only the refreshed version. A refresh+ changes the client for every server on that bundle.+- [ ] Record the new patch and its download source in the tables in+ `README.md` in this directory, in the same change.++## What not to do here++- Do not install client binaries in the `Dockerfile`. ADR-0005 rejected that.+- Do not add a shared library to the runtime image only to satisfy one client+ when a build against the libraries already present exists.+- Do not trust a directory name while you are building the bundle. Confirm+ what a binary is by running `--version`, or by reading its version string+ when the architecture cannot be executed locally. The startup check does+ compare the two — it runs every client's version flag and rejects a bundle+ whose version belongs to another line — but it is the last net, not the+ first. Note that `mariadb-dump --version` prints two numbers and only the one+ before `-MariaDB` is the server line; `client 10.19` is the protocol+ version.diff --git a/assets/tools/README.md b/assets/tools/README.mdindex 9ae491f3..9e28a4b4 100644--- a/assets/tools/README.md+++ b/assets/tools/README.md@@ -3,15 +3,18 @@ CI, and the Docker image all read from one place. The Go backendresolves them at runtime via `runtime.GOOS`+`runtime.GOARCH` →`assets/tools/<arch-key>/<db>/<db>-<v>/bin/<command>`.+`AGENTS.md` in this directory carries the checklist for adding a version and+for refreshing a patch level. Read it before changing anything here.+Layout (one subtree per arch, identical shape):```assets/tools/<arch>/postgresql/postgresql-{12,13,14,15,16,17,18}/bin/pg_dump, pg_restore, psql- mysql/mysql-{5.7,8.0,8.4,9}/bin/+ mysql/mysql-{5.7,8.0,8.4,9,26}/bin/mysql, mysqldump- mariadb/mariadb-{10.6,12.1}/bin/+ mariadb/mariadb-{10.6,12.3,13.0}/bin/mariadb, mariadb-dumpmongodb/bin/mongodump, mongorestore@@ -21,8 +24,14 @@ assets/tools/<arch>/| GOOS / GOARCH | key | size ||-------------------|-------|---------|-| `linux` / `amd64` | `x64` | ~160 MB |-| `linux` / `arm64` | `arm` | ~125 MB |+| `linux` / `amd64` | `x64` | ~157 MB |+| `linux` / `arm64` | `arm` | ~146 MB |++A directory name is a release line, not a patch level: `mysql-26` holds one+26.x build and serves every MySQL 26.x server, `mariadb-13.0` one 13.0.x build+and every MariaDB 13.x server. The startup check runs each binary's version+flag and rejects a bundle whose version belongs to a different line, so the+name and the bytes cannot drift apart unnoticed.Bundled PostgreSQL minors (identical on both arches, Debian bookworm pgdg):@@ -41,14 +50,70 @@ will ever exist. Keep every binary within one major on the same package builda `pg_dump` older than its sibling `pg_basebackup` is how issue #725 (pg_dump18.1 silently emitting wrong sequence values) survived unnoticed.+Bundled MySQL patches (identical on both arches, upstream glibc2.28 tarballs+from `https://cdn.mysql.com/Downloads/MySQL-<line>/mysql-<patch>-linux-glibc2.28-{x86_64,aarch64}.tar.xz`):++| bundle | patch | notes |+|------------|--------|-------------------------------------------|+| `mysql-5.7` | 5.7.44 | final patch of the line; amd64 only |+| `mysql-8.0` | 8.0.46 | |+| `mysql-8.4` | 8.4.11 | long-term support line |+| `mysql-9` | 9.7.2 | serves every 9.x server |+| `mysql-26` | 26.7.0 | calendar scheme; serves every 26.x server |++Bundled MariaDB patches, unpacked from the vendor's own package repositories+by `tools/refresh-mariadb-bundle.sh`:++| bundle | patch | source repository and suite |+|----------------|----------|----------------------------------------|+| `mariadb-10.6` | 10.6.28 | `repo/10.6/ubuntu`, `ubu2204` |+| `mariadb-12.3` | 12.3.3 | `repo/12.3/debian`, `deb12` (bookworm) |+| `mariadb-13.0` | 13.0.2 | `repo/13.0/ubuntu`, `ubu2204` |++MariaDB ships three client tiers, mapped to server versions in+`backend/internal/util/tools/mariadb.go`:++- `10.6` (legacy) serves MariaDB 5.5 and 10.1. It exists because the newer+ clients query `generation_expression`, a column MariaDB added in 10.2.+ In 10.6 the real programs are still named `mysql` and `mysqldump`; the+ refresh script installs them under the `mariadb` names the backend uses.+- `12.3` (modern) serves every line from 10.2 through 12.x.+- `13.0` serves the 13 line, which the 12.3 client predates.++MongoDB Database Tools are version 100.16.1 across all arches and are+backward-compatible with all supported server versions (4.2 – 8.2). MongoDB+4.0 is not supported (wire version 7, requires older mongodump).+Notes:-- MySQL `5.7` is amd64-only — `arm/mysql/mysql-5.7/` is intentionally absent.-- MariaDB ships two client versions: legacy `10.6` (for MariaDB servers 5.5 / 10.1) and modern `12.1` (for 10.2+). The mapping lives in `tools/mariadb.go`.-- MongoDB Database Tools are version 100.16.1 across all arches and are backward-compatible with all supported server versions (4.2 – 8.2). MongoDB 4.0 is not supported (wire version 7, requires older mongodump).--To refresh a tool set, drop the corresponding `bin/` contents in place-and commit. There are no install scripts in this directory; binaries-are sourced from the upstream vendor downloads. For PostgreSQL that means-`postgresql-client-<major>` from `apt.postgresql.org` for `bookworm`, both+- MySQL `5.7` is amd64-only — `arm/mysql/mysql-5.7/` is intentionally absent,+ because upstream never built a 5.7 client for aarch64. A MySQL 5.7 server is+ refused at the connection test on an arm64 deployment.++Shared libraries the binaries need from the runtime image+(`debian:bookworm-slim`, glibc 2.36; every bundled binary targets glibc 2.28+or lower):++| library | needed by |+|-------------------------------------|----------------------------------------------|+| `libc`, `libm`, `libgcc_s`, `libstdc++` | everything |+| `libssl.so.3`, `libcrypto.so.3` | MySQL and MariaDB clients, `libpq` |+| `libz.so.1`, `libzstd.so.1`, `liblz4.so.1` | MariaDB clients, `libpq` |+| `libncurses.so.6`, `libtinfo.so.6` | MySQL 8.0+ and MariaDB interactive clients |+| `libncurses.so.5`, `libtinfo.so.5` | the MySQL 5.7 interactive client only |+| `libreadline.so.8` | `psql` for PostgreSQL 13 and later |+| `libedit.so.2` | every `mariadb` interactive client, and `psql` for PostgreSQL 12 |+| `libpq.so.5` | the PostgreSQL clients |+| `libgssapi_krb5.so.2` | the MongoDB tools |++`libedit.so.2` is not installed explicitly in the `Dockerfile`: it reaches the+image as a dependency of `postgresql-common`. A change that drops that package+takes the MariaDB interactive client with it. It is also the one soname a+non-Debian development host is missing — Fedora ships the upstream+`libedit.so.0` — which is what `make test-fedora` and `make run-fedora` in+`backend/` shim around.++To refresh a tool set, run the script for that engine, or drop the+corresponding `bin/` contents in place, and commit. For PostgreSQL the source+is `postgresql-client-<major>` from `apt.postgresql.org` for `bookworm`, both`amd64` and `arm64`, matching the `debian:bookworm-slim` runtime base in the-Dockerfile. Update the minor table above in the same commit.+Dockerfile. Update the tables above in the same commit.diff --git a/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb b/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadbindex eefb2bff..50e48cc2 100755Binary files a/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb and b/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb differdiff --git a/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb-dump b/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb-dumpindex 6d8f4f69..7a8a1738 100755Binary files a/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb-dump and b/assets/tools/arm/mariadb/mariadb-10.6/bin/mariadb-dump differdiff --git a/assets/tools/arm/mariadb/mariadb-12.1/bin/mariadb b/assets/tools/arm/mariadb/mariadb-12.3/bin/mariadbsimilarity index 79%rename from assets/tools/arm/mariadb/mariadb-12.1/bin/mariadbrename to assets/tools/arm/mariadb/mariadb-12.3/bin/mariadbindex eef87e91..b9a30896 100755Binary files a/assets/tools/arm/mariadb/mariadb-12.1/bin/mariadb and b/assets/tools/arm/mariadb/mariadb-12.3/bin/mariadb differdiff --git a/assets/tools/arm/mariadb/mariadb-12.1/bin/mariadb-dump b/assets/tools/arm/mariadb/mariadb-12.3/bin/mariadb-dumpsimilarity index 81%rename from assets/tools/arm/mariadb/mariadb-12.1/bin/mariadb-dumprename to assets/tools/arm/mariadb/mariadb-12.3/bin/mariadb-dumpindex 5d36ed55..81547139 100755Binary files a/assets/tools/arm/mariadb/mariadb-12.1/bin/mariadb-dump and b/assets/tools/arm/mariadb/mariadb-12.3/bin/mariadb-dump differdiff --git a/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadb b/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadbnew file mode 100755index 00000000..3f2b8a16Binary files /dev/null and b/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadb differdiff --git a/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadb-dump b/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadb-dumpnew file mode 100755index 00000000..f674e10eBinary files /dev/null and b/assets/tools/arm/mariadb/mariadb-13.0/bin/mariadb-dump differdiff --git a/assets/tools/arm/mysql/mysql-26/bin/mysql b/assets/tools/arm/mysql/mysql-26/bin/mysqlnew file mode 100755index 00000000..cb7bc6d3Binary files /dev/null and b/assets/tools/arm/mysql/mysql-26/bin/mysql differdiff --git a/assets/tools/arm/mysql/mysql-26/bin/mysqldump b/assets/tools/arm/mysql/mysql-26/bin/mysqldumpnew file mode 100755index 00000000..4e62d99dBinary files /dev/null and b/assets/tools/arm/mysql/mysql-26/bin/mysqldump differdiff --git a/assets/tools/arm/mysql/mysql-8.0/bin/mysql b/assets/tools/arm/mysql/mysql-8.0/bin/mysqlindex 9b3ace05..f0911642 100755Binary files a/assets/tools/arm/mysql/mysql-8.0/bin/mysql and b/assets/tools/arm/mysql/mysql-8.0/bin/mysql differdiff --git a/assets/tools/arm/mysql/mysql-8.0/bin/mysqldump b/assets/tools/arm/mysql/mysql-8.0/bin/mysqldumpindex c14203b7..5910581e 100755Binary files a/assets/tools/arm/mysql/mysql-8.0/bin/mysqldump and b/assets/tools/arm/mysql/mysql-8.0/bin/mysqldump differdiff --git a/assets/tools/arm/mysql/mysql-8.4/bin/mysql b/assets/tools/arm/mysql/mysql-8.4/bin/mysqlindex ce6bdfd9..bc66889f 100755Binary files a/assets/tools/arm/mysql/mysql-8.4/bin/mysql and b/assets/tools/arm/mysql/mysql-8.4/bin/mysql differdiff --git a/assets/tools/arm/mysql/mysql-8.4/bin/mysqldump b/assets/tools/arm/mysql/mysql-8.4/bin/mysqldumpindex f947a626..62713ead 100755Binary files a/assets/tools/arm/mysql/mysql-8.4/bin/mysqldump and b/assets/tools/arm/mysql/mysql-8.4/bin/mysqldump differdiff --git a/assets/tools/arm/mysql/mysql-9/bin/mysql b/assets/tools/arm/mysql/mysql-9/bin/mysqlindex e99d3d3d..386be0f3 100755Binary files a/assets/tools/arm/mysql/mysql-9/bin/mysql and b/assets/tools/arm/mysql/mysql-9/bin/mysql differdiff --git a/assets/tools/arm/mysql/mysql-9/bin/mysqldump b/assets/tools/arm/mysql/mysql-9/bin/mysqldumpindex 5cea950f..e2a9a0b7 100755Binary files a/assets/tools/arm/mysql/mysql-9/bin/mysqldump and b/assets/tools/arm/mysql/mysql-9/bin/mysqldump differdiff --git a/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb b/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadbindex b790a7c0..4b0a5f19 100755Binary files a/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb and b/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb differdiff --git a/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb-dump b/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb-dumpindex f73438d4..514ffc5d 100755Binary files a/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb-dump and b/assets/tools/x64/mariadb/mariadb-10.6/bin/mariadb-dump differdiff --git a/assets/tools/x64/mariadb/mariadb-12.1/bin/mariadb b/assets/tools/x64/mariadb/mariadb-12.3/bin/mariadbsimilarity index 77%rename from assets/tools/x64/mariadb/mariadb-12.1/bin/mariadbrename to assets/tools/x64/mariadb/mariadb-12.3/bin/mariadbindex 7aaed60f..44b92f20 100755Binary files a/assets/tools/x64/mariadb/mariadb-12.1/bin/mariadb and b/assets/tools/x64/mariadb/mariadb-12.3/bin/mariadb differdiff --git a/assets/tools/x64/mariadb/mariadb-12.1/bin/mariadb-dump b/assets/tools/x64/mariadb/mariadb-12.3/bin/mariadb-dumpsimilarity index 79%rename from assets/tools/x64/mariadb/mariadb-12.1/bin/mariadb-dumprename to assets/tools/x64/mariadb/mariadb-12.3/bin/mariadb-dumpindex 432b842b..bb9f092b 100755Binary files a/assets/tools/x64/mariadb/mariadb-12.1/bin/mariadb-dump and b/assets/tools/x64/mariadb/mariadb-12.3/bin/mariadb-dump differdiff --git a/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadb b/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadbnew file mode 100755index 00000000..7795a638Binary files /dev/null and b/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadb differdiff --git a/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadb-dump b/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadb-dumpnew file mode 100755index 00000000..8dfcd077Binary files /dev/null and b/assets/tools/x64/mariadb/mariadb-13.0/bin/mariadb-dump differdiff --git a/assets/tools/x64/mysql/mysql-26/bin/mysql b/assets/tools/x64/mysql/mysql-26/bin/mysqlnew file mode 100755index 00000000..0ab498a1Binary files /dev/null and b/assets/tools/x64/mysql/mysql-26/bin/mysql differdiff --git a/assets/tools/x64/mysql/mysql-26/bin/mysqldump b/assets/tools/x64/mysql/mysql-26/bin/mysqldumpnew file mode 100755index 00000000..c6030021Binary files /dev/null and b/assets/tools/x64/mysql/mysql-26/bin/mysqldump differdiff --git a/assets/tools/x64/mysql/mysql-8.0/bin/mysql b/assets/tools/x64/mysql/mysql-8.0/bin/mysqlindex 57c5a77c..cd7a4a1e 100755Binary files a/assets/tools/x64/mysql/mysql-8.0/bin/mysql and b/assets/tools/x64/mysql/mysql-8.0/bin/mysql differdiff --git a/assets/tools/x64/mysql/mysql-8.0/bin/mysqldump b/assets/tools/x64/mysql/mysql-8.0/bin/mysqldumpindex f1936756..531e0246 100755Binary files a/assets/tools/x64/mysql/mysql-8.0/bin/mysqldump and b/assets/tools/x64/mysql/mysql-8.0/bin/mysqldump differdiff --git a/assets/tools/x64/mysql/mysql-8.4/bin/mysql b/assets/tools/x64/mysql/mysql-8.4/bin/mysqlindex b8d0bcd2..2648ca78 100755Binary files a/assets/tools/x64/mysql/mysql-8.4/bin/mysql and b/assets/tools/x64/mysql/mysql-8.4/bin/mysql differdiff --git a/assets/tools/x64/mysql/mysql-8.4/bin/mysqldump b/assets/tools/x64/mysql/mysql-8.4/bin/mysqldumpindex 211fb2dd..068b4436 100755Binary files a/assets/tools/x64/mysql/mysql-8.4/bin/mysqldump and b/assets/tools/x64/mysql/mysql-8.4/bin/mysqldump differdiff --git a/assets/tools/x64/mysql/mysql-9/bin/mysql b/assets/tools/x64/mysql/mysql-9/bin/mysqlindex 3afd8710..aa48993c 100755Binary files a/assets/tools/x64/mysql/mysql-9/bin/mysql and b/assets/tools/x64/mysql/mysql-9/bin/mysql differdiff --git a/assets/tools/x64/mysql/mysql-9/bin/mysqldump b/assets/tools/x64/mysql/mysql-9/bin/mysqldumpindex 38919187..c2b8ac92 100755Binary files a/assets/tools/x64/mysql/mysql-9/bin/mysqldump and b/assets/tools/x64/mysql/mysql-9/bin/mysqldump differdiff --git a/backend/Makefile b/backend/Makefileindex 59b8eb46..9f710ed1 100644--- a/backend/Makefile+++ b/backend/Makefile@@ -20,14 +20,21 @@ LIBEDIT_SHIM_DIR ?= $(HOME)/.local/lib/databasus-compat# The bundled DB clients in assets/tools are Debian-built and link libedit.so.2,# a soname Debian patches in downstream; Fedora ships the upstream libedit.so.0.# The ABI is identical, so renaming via symlink is safe.-test-fedora:+libedit-shim:@libedit=/usr/lib64/libedit.so.0; \[ -e "$$libedit" ] || libedit=$$(ldconfig -p | awk '/libedit\.so\.0 / {print $$NF; exit}'); \if [ -z "$$libedit" ]; then echo "libedit.so.0 not found — install it with: sudo dnf install libedit"; exit 1; fi; \mkdir -p $(LIBEDIT_SHIM_DIR); \ln -sf "$$libedit" $(LIBEDIT_SHIM_DIR)/libedit.so.2++test-fedora: libedit-shim@LD_LIBRARY_PATH="$(LIBEDIT_SHIM_DIR)$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}" $(MAKE) test+# The startup check starts every bundled client, so running the backend on+# Fedora needs the same shim the tests do.+run-fedora: libedit-shim+ @LD_LIBRARY_PATH="$(LIBEDIT_SHIM_DIR)$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}" $(MAKE) run+clean-testcontainers:@ids=$$(docker ps -aq --filter "label=org.testcontainers"); \if [ -n "$$ids" ]; then docker rm -f $$ids; else echo "no leftover testcontainers"; fidiff --git a/backend/internal/features/backups/backups/usecases/logical/mariadb/compression_probe_test.go b/backend/internal/features/backups/backups/usecases/logical/mariadb/compression_probe_test.goindex df11c668..b5996952 100644--- a/backend/internal/features/backups/backups/usecases/logical/mariadb/compression_probe_test.go+++ b/backend/internal/features/backups/backups/usecases/logical/mariadb/compression_probe_test.go@@ -88,13 +88,18 @@ func Test_ProbeNetworkCompressionArgs_AgainstStockMariadb_SelectsCompress(t *test.Cleanup(func() { _ = os.RemoveAll(filepath.Dir(myCnfFile)) })+ mariadbDumpBin, err := tools.GetMariadbExecutable(+ tools.MariadbVersion1011, tools.MariadbExecutableMariadbDump,+ )+ if err != nil {+ t.Fatalf("failed to resolve mariadb-dump: %v", err)+ }+compressionArgs := uc.probeNetworkCompressionArgs(t.Context(), CompressionProbeSpec{- MariadbDumpBin: tools.GetMariadbExecutable(- tools.MariadbVersion1011, tools.MariadbExecutableMariadbDump,- ),- MyCnfFile: myCnfFile,- DatabaseName: databaseName,- DatabaseID: uuid.New(),+ MariadbDumpBin: mariadbDumpBin,+ MyCnfFile: myCnfFile,+ DatabaseName: databaseName,+ DatabaseID: uuid.New(),})if !slices.Contains(compressionArgs, "--compress") {diff --git a/backend/internal/features/backups/backups/usecases/logical/mariadb/create_backup_uc.go b/backend/internal/features/backups/backups/usecases/logical/mariadb/create_backup_uc.goindex 2ca6eccc..7923dcdd 100644--- a/backend/internal/features/backups/backups/usecases/logical/mariadb/create_backup_uc.go+++ b/backend/internal/features/backups/backups/usecases/logical/mariadb/create_backup_uc.go@@ -110,11 +110,16 @@ func (uc *CreateMariadbBackupUsecase) Execute(args := uc.buildMariadbDumpArgs(mariadbDatabase)+ mariadbDumpBin, err := tools.GetMariadbExecutable(mariadbDatabase.Version, tools.MariadbExecutableMariadbDump)+ if err != nil {+ return nil, err+ }+return uc.streamToStorage(ctx,backup,backupConfig,- tools.GetMariadbExecutable(mariadbDatabase.Version, tools.MariadbExecutableMariadbDump),+ mariadbDumpBin,args,decryptedPassword,fileStore,diff --git a/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe.go b/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe.goindex 9f3bd556..975e94f9 100644--- a/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe.go+++ b/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe.go@@ -33,23 +33,25 @@ type CompressionProbeSpec struct {// fallback. Managed providers that front MySQL with a proxy (e.g. Aliyun RDS) advertise algorithms// the proxy cannot actually negotiate, so the choice has to come from a handshake rather than from// the protocol_compression_algorithms server variable.+// The deprecated --compress flag belongs to 5.7 alone. Every later line is+// named explicitly rather than reached by falling through, so a line added+// later does not quietly inherit the legacy flag.func getNetworkCompressionCandidates(version tools.MysqlVersion) [][]string {- switch version {- case tools.MysqlVersion80, tools.MysqlVersion84, tools.MysqlVersion9:- return [][]string{- {- "--compression-algorithms=zstd",- fmt.Sprintf("--zstd-compression-level=%d", networkZstdCompressionLevel),- },- {"--compression-algorithms=zlib"},- {},- }- default:+ if version == tools.MysqlVersion57 {return [][]string{{"--compress"},{},}}++ return [][]string{+ {+ "--compression-algorithms=zstd",+ fmt.Sprintf("--zstd-compression-level=%d", networkZstdCompressionLevel),+ },+ {"--compression-algorithms=zlib"},+ {},+ }}func getNetworkCompressionLabel(candidate []string) string {diff --git a/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe_test.go b/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe_test.goindex fbfdd307..9ed2663b 100644--- a/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe_test.go+++ b/backend/internal/features/backups/backups/usecases/logical/mysql/compression_probe_test.go@@ -136,10 +136,13 @@ func probeCompressionAgainstMysql(t *testing.T, endpoint containers.Endpoint) []t.Cleanup(func() { _ = os.RemoveAll(filepath.Dir(myCnfFile)) })+ mysqldumpBin, err := tools.GetMysqlExecutable(tools.MysqlVersion80, tools.MysqlExecutableMysqldump)+ if err != nil {+ t.Fatalf("failed to resolve mysqldump: %v", err)+ }+return uc.probeNetworkCompressionArgs(t.Context(), CompressionProbeSpec{- MysqldumpBin: tools.GetMysqlExecutable(- tools.MysqlVersion80, tools.MysqlExecutableMysqldump,- ),+ MysqldumpBin: mysqldumpBin,MyCnfFile: myCnfFile,DatabaseName: databaseName,DatabaseID: uuid.New(),diff --git a/backend/internal/features/backups/backups/usecases/logical/mysql/create_backup_uc.go b/backend/internal/features/backups/backups/usecases/logical/mysql/create_backup_uc.goindex eb0840cd..22d2d596 100644--- a/backend/internal/features/backups/backups/usecases/logical/mysql/create_backup_uc.go+++ b/backend/internal/features/backups/backups/usecases/logical/mysql/create_backup_uc.go@@ -110,11 +110,16 @@ func (uc *CreateMysqlBackupUsecase) Execute(args := uc.buildMysqldumpArgs(mysqlDatabase)+ mysqldumpBin, err := tools.GetMysqlExecutable(mysqlDatabase.Version, tools.MysqlExecutableMysqldump)+ if err != nil {+ return nil, err+ }+return uc.streamToStorage(ctx,backup,backupConfig,- tools.GetMysqlExecutable(mysqlDatabase.Version, tools.MysqlExecutableMysqldump),+ mysqldumpBin,args,decryptedPassword,fileStore,diff --git a/backend/internal/features/databases/databases/mariadb/model.go b/backend/internal/features/databases/databases/mariadb/model.goindex 0bc07ee6..89f9c11f 100644--- a/backend/internal/features/databases/databases/mariadb/model.go+++ b/backend/internal/features/databases/databases/mariadb/model.go@@ -525,7 +525,9 @@ func (m *MariadbDatabase) buildDSN(password, database string) string {// detectMariadbVersion parses VERSION() output to detect MariaDB version// MariaDB returns strings like "10.11.6-MariaDB" or "11.4.2-MariaDB-1:11.4.2+maria~ubu2204"-// Minor versions are mapped to the closest supported version (e.g., 12.1 → 12.0)+// A version identity names a release line, so minors collapse onto it+// (12.1 → 12.0, every 13.x → 13.0). A line no shipped client serves is+// refused here rather than at backup time.func detectMariadbVersion(ctx context.Context, db *sql.DB) (tools.MariadbVersion, error) {var versionStr stringerr := db.QueryRowContext(ctx, "SELECT VERSION()").Scan(&versionStr)@@ -533,6 +535,12 @@ func detectMariadbVersion(ctx context.Context, db *sql.DB) (tools.MariadbVersionreturn "", fmt.Errorf("failed to query MariaDB version: %w", err)}+ return parseMariadbVersionString(versionStr)+}++// parseMariadbVersionString turns what a server answers VERSION() with into+// the version identity that names its release line.+func parseMariadbVersionString(versionStr string) (tools.MariadbVersion, error) {if !strings.Contains(strings.ToLower(versionStr), "mariadb") {return "", fmt.Errorf("not a MariaDB server (version: %s). Use MySQL database type instead",@@ -540,18 +548,26 @@ func detectMariadbVersion(ctx context.Context, db *sql.DB) (tools.MariadbVersion)}- re := regexp.MustCompile(`^(\d+)\.(\d+)`)- matches := re.FindStringSubmatch(versionStr)+ matches := mariadbVersionPattern.FindStringSubmatch(versionStr)if len(matches) < 3 {return "", fmt.Errorf("could not parse MariaDB version: %s", versionStr)}- major := matches[1]- minor := matches[2]+ version, err := mapMariadbVersion(matches[1], matches[2])+ if err != nil {+ return "", err+ }- return mapMariadbVersion(major, minor)+ // A line we map is still unsupported where its client was never built.+ if err := tools.RequireMariadbBundle(version); err != nil {+ return "", err+ }++ return version, nil}+var mariadbVersionPattern = regexp.MustCompile(`^(\d+)\.(\d+)`)+func mapMariadbVersion(major, minor string) (tools.MariadbVersion, error) {switch major {case "5":@@ -562,9 +578,13 @@ func mapMariadbVersion(major, minor string) (tools.MariadbVersion, error) {return mapMariadb11xVersion(minor)case "12":return tools.MariadbVersion120, nil+ // Every 13.x release belongs to one line, whatever its minor, and the+ // 13.0 client serves all of them.+ case "13":+ return tools.MariadbVersion130, nildefault:return "", fmt.Errorf(- "unsupported MariaDB major version: %s (supported: 5.x, 10.x, 11.x, 12.x)",+ "unsupported MariaDB major version: %s (supported: 5.x, 10.x, 11.x, 12.x, 13.x)",major,)}diff --git a/backend/internal/features/databases/databases/mariadb/model_test.go b/backend/internal/features/databases/databases/mariadb/model_test.goindex 92836f01..93e704fd 100644--- a/backend/internal/features/databases/databases/mariadb/model_test.go+++ b/backend/internal/features/databases/databases/mariadb/model_test.go@@ -21,14 +21,20 @@ type mariadbModelVersion struct {version tools.MariadbVersionimage stringrunsRoutineGrantTest bool // only 11.4/11.8/12.0 expose SHOW CREATE ROUTINE+ runsRoleTests bool // MariaDB grew roles in 10.0.5, so 5.5 has none}+// 5.5 and 10.1 are here because they are the only servers the legacy client+// tier serves: without them nothing exercises that tier.var mariadbModelVersions = []mariadbModelVersion{- {"MariaDB 10.6", tools.MariadbVersion106, "mariadb:10.6", false},- {"MariaDB 10.11", tools.MariadbVersion1011, "mariadb:10.11", false},- {"MariaDB 11.4", tools.MariadbVersion114, "mariadb:11.4", true},- {"MariaDB 11.8", tools.MariadbVersion118, "mariadb:11.8", true},- {"MariaDB 12.0", tools.MariadbVersion120, "mariadb:12.0", true},+ {"MariaDB 5.5", tools.MariadbVersion55, "mariadb:5.5", false, false},+ {"MariaDB 10.1", tools.MariadbVersion101, "mariadb:10.1", false, true},+ {"MariaDB 10.6", tools.MariadbVersion106, "mariadb:10.6", false, true},+ {"MariaDB 10.11", tools.MariadbVersion1011, "mariadb:10.11", false, true},+ {"MariaDB 11.4", tools.MariadbVersion114, "mariadb:11.4", true, true},+ {"MariaDB 11.8", tools.MariadbVersion118, "mariadb:11.8", true, true},+ {"MariaDB 12.0", tools.MariadbVersion120, "mariadb:12.0", true, true},+ {"MariaDB 13.0", tools.MariadbVersion130, "mariadb:13.0", true, true},}// Test_MariadbModel_AcrossSupportedVersions boots each MariaDB version once and runs every matrix@@ -62,17 +68,19 @@ func Test_MariadbModel_AcrossSupportedVersions(t *testing.T) {testTestConnectionDatabaseWithUnderscoresAndAllPrivileges(t, endpoint, dbVersion.version)})- t.Run("Test_TestConnection_WhenBackupPrivilegesComeFromActiveRole_Success", func(t *testing.T) {- testTestConnectionBackupPrivilegesFromActiveRole(t, endpoint, dbVersion.version)- })+ if dbVersion.runsRoleTests {+ t.Run("Test_TestConnection_WhenBackupPrivilegesComeFromActiveRole_Success", func(t *testing.T) {+ testTestConnectionBackupPrivilegesFromActiveRole(t, endpoint, dbVersion.version)+ })- t.Run("Test_TestConnection_WhenBackupPrivilegesComeFromNestedRole_Success", func(t *testing.T) {- testTestConnectionBackupPrivilegesFromNestedRole(t, endpoint, dbVersion.version)- })+ t.Run("Test_TestConnection_WhenBackupPrivilegesComeFromNestedRole_Success", func(t *testing.T) {+ testTestConnectionBackupPrivilegesFromNestedRole(t, endpoint, dbVersion.version)+ })- t.Run("Test_TestConnection_WhenRoleIsGrantedButNotActivated_ReturnsError", func(t *testing.T) {- testTestConnectionRoleGrantedButNotActivated(t, endpoint, dbVersion.version)- })+ t.Run("Test_TestConnection_WhenRoleIsGrantedButNotActivated_ReturnsError", func(t *testing.T) {+ testTestConnectionRoleGrantedButNotActivated(t, endpoint, dbVersion.version)+ })+ }t.Run("Test_TestConnection_WhenTableGrantsCoverEveryVisibleTable_Success", func(t *testing.T) {testTestConnectionTableGrantsCoverEveryVisibleTable(t, endpoint, dbVersion.version)diff --git a/backend/internal/features/databases/databases/mariadb/version_test.go b/backend/internal/features/databases/databases/mariadb/version_test.gonew file mode 100644index 00000000..7b20fc7a--- /dev/null+++ b/backend/internal/features/databases/databases/mariadb/version_test.go@@ -0,0 +1,56 @@+package mariadb++import (+ "strings"+ "testing"++ "databasus-backend/internal/util/tools"+)++func Test_ParseMariadbVersionString_AcrossTheSupportedLines_RecordsTheLineIdentity(t *testing.T) {+ cases := []struct {+ reported string+ expected tools.MariadbVersion+ }{+ {"5.5.68-MariaDB", tools.MariadbVersion55},+ {"10.1.48-MariaDB", tools.MariadbVersion101},+ {"10.11.14-MariaDB", tools.MariadbVersion1011},+ {"12.0.2-MariaDB", tools.MariadbVersion120},+ {"13.0.2-MariaDB-1:13.0.2+maria~ubu2204", tools.MariadbVersion130},+ // A minor later than the client we ship, still inside the 13 line.+ {"13.2.0-MariaDB", tools.MariadbVersion130},+ }++ for _, c := range cases {+ got, err := parseMariadbVersionString(c.reported)+ if err != nil {+ t.Fatalf("parsing %q: %v", c.reported, err)+ }++ if got != c.expected {+ t.Errorf("server %s: got identity %s, expected %s", c.reported, got, c.expected)+ }+ }+}++func Test_ParseMariadbVersionString_OnALineNoClientServes_NamesTheSupportedVersions(t *testing.T) {+ _, err := parseMariadbVersionString("14.1.0-MariaDB")+ if err == nil {+ t.Fatal("expected a server on an unserved line to be refused")+ }++ if !strings.Contains(err.Error(), "supported") {+ t.Errorf("the refusal should list the supported versions, got %q", err.Error())+ }+}++func Test_ParseMariadbVersionString_AgainstAMysqlServer_DirectsToTheMysqlType(t *testing.T) {+ _, err := parseMariadbVersionString("8.0.46")+ if err == nil {+ t.Fatal("expected a MySQL server under the MariaDB type to be refused")+ }++ if !strings.Contains(err.Error(), "MySQL") {+ t.Errorf("the refusal should direct the user to the MySQL type, got %q", err.Error())+ }+}diff --git a/backend/internal/features/databases/databases/mysql/model.go b/backend/internal/features/databases/databases/mysql/model.goindex c6c0e45c..9bd9fa2c 100644--- a/backend/internal/features/databases/databases/mysql/model.go+++ b/backend/internal/features/databases/databases/mysql/model.go@@ -541,8 +541,10 @@ func (m *MysqlDatabase) buildDSN(password, database string) string {)}-// detectMysqlVersion parses VERSION() output to detect MySQL version-// Minor versions are mapped to the closest supported version (e.g., 8.1 → 8.0, 8.4+ → 8.4)+// detectMysqlVersion parses VERSION() output to detect MySQL version.+// A version identity names a release line, so minors collapse onto it+// (8.1 → 8.0, 8.4+ → 8.4, every 26.x → 26). A line no shipped client serves+// is refused here rather than at backup time.func detectMysqlVersion(ctx context.Context, db *sql.DB) (tools.MysqlVersion, error) {var versionStr stringerr := db.QueryRowContext(ctx, "SELECT VERSION()").Scan(&versionStr)@@ -550,18 +552,33 @@ func detectMysqlVersion(ctx context.Context, db *sql.DB) (tools.MysqlVersion, erreturn "", fmt.Errorf("failed to query MySQL version: %w", err)}- re := regexp.MustCompile(`^(\d+)\.(\d+)`)- matches := re.FindStringSubmatch(versionStr)+ return parseMysqlVersionString(versionStr)+}++// parseMysqlVersionString turns what a server answers VERSION() with into the+// version identity that names its release line. Managed providers append a+// suffix — "26.7.0-cloud" — so only the leading numbers are read.+func parseMysqlVersionString(versionStr string) (tools.MysqlVersion, error) {+ matches := mysqlVersionPattern.FindStringSubmatch(versionStr)if len(matches) < 3 {return "", fmt.Errorf("could not parse MySQL version: %s", versionStr)}- major := matches[1]- minor := matches[2]+ version, err := mapMysqlVersion(matches[1], matches[2])+ if err != nil {+ return "", err+ }- return mapMysqlVersion(major, minor)+ // A line we map is still unsupported where its client was never built.+ if err := tools.RequireMysqlBundle(version); err != nil {+ return "", err+ }++ return version, nil}+var mysqlVersionPattern = regexp.MustCompile(`^(\d+)\.(\d+)`)+func mapMysqlVersion(major, minor string) (tools.MysqlVersion, error) {switch major {case "5":@@ -570,9 +587,12 @@ func mapMysqlVersion(major, minor string) (tools.MysqlVersion, error) {return mapMysql8xVersion(minor), nilcase "9":return tools.MysqlVersion9, nil+ // Every 26.x release belongs to one line, whatever its minor.+ case "26":+ return tools.MysqlVersion26, nildefault:return "", fmt.Errorf(- "unsupported MySQL major version: %s (supported: 5.x, 8.x, 9.x)",+ "unsupported MySQL major version: %s (supported: 5.x, 8.x, 9.x, 26.x)",major,)}diff --git a/backend/internal/features/databases/databases/mysql/model_test.go b/backend/internal/features/databases/databases/mysql/model_test.goindex ed9f3f8e..21387572 100644--- a/backend/internal/features/databases/databases/mysql/model_test.go+++ b/backend/internal/features/databases/databases/mysql/model_test.go@@ -30,6 +30,7 @@ var mysqlModelVersions = []mysqlModelVersion{{"MySQL 8.0", tools.MysqlVersion80, "mysql:8.0", true},{"MySQL 8.4", tools.MysqlVersion84, "mysql:8.4", true},{"MySQL 9", tools.MysqlVersion9, "mysql:9", true},+ {"MySQL 26", tools.MysqlVersion26, "mysql:26.7", true},}// Test_MysqlModel_AcrossSupportedVersions boots each MySQL version once and runs every matrix modeldiff --git a/backend/internal/features/databases/databases/mysql/version_test.go b/backend/internal/features/databases/databases/mysql/version_test.gonew file mode 100644index 00000000..11512daf--- /dev/null+++ b/backend/internal/features/databases/databases/mysql/version_test.go@@ -0,0 +1,83 @@+package mysql++import (+ "runtime"+ "strings"+ "testing"++ "databasus-backend/internal/util/tools"+)++func Test_ParseMysqlVersionString_AcrossTheSupportedLines_RecordsTheLineIdentity(t *testing.T) {+ cases := []struct {+ reported string+ expected tools.MysqlVersion+ }{+ {"8.0.46", tools.MysqlVersion80},+ {"8.4.11", tools.MysqlVersion84},+ {"9.7.2", tools.MysqlVersion9},+ {"26.7.0", tools.MysqlVersion26},+ // A release later than the client we ship, still inside the line.+ {"26.10.1", tools.MysqlVersion26},+ }++ for _, c := range cases {+ got, err := parseMysqlVersionString(c.reported)+ if err != nil {+ t.Fatalf("parsing %q: %v", c.reported, err)+ }++ if got != c.expected {+ t.Errorf("server %s: got identity %s, expected %s", c.reported, got, c.expected)+ }+ }+}++// Issue #786: Oracle MySQL HeatWave answers VERSION() with a vendor suffix.+func Test_ParseMysqlVersionString_WithAVendorSuffix_AcceptsTheServer(t *testing.T) {+ got, err := parseMysqlVersionString("26.7.0-cloud")+ if err != nil {+ t.Fatalf("unexpected error: %v", err)+ }++ if got != tools.MysqlVersion26 {+ t.Errorf("got identity %s, expected %s", got, tools.MysqlVersion26)+ }+}++func Test_ParseMysqlVersionString_OnALineNoClientServes_NamesTheSupportedVersions(t *testing.T) {+ _, err := parseMysqlVersionString("27.1.0")+ if err == nil {+ t.Fatal("expected a server on an unserved line to be refused")+ }++ if !strings.Contains(err.Error(), "supported") {+ t.Errorf("the refusal should list the supported versions, got %q", err.Error())+ }+}++func Test_ParseMysqlVersionString_WithAnUnreadableVersion_ReportsWhatItReceived(t *testing.T) {+ _, err := parseMysqlVersionString("unknown")+ if err == nil {+ t.Fatal("expected an unreadable version to be refused")+ }++ if !strings.Contains(err.Error(), "unknown") {+ t.Errorf("the refusal should report the value received, got %q", err.Error())+ }+}++func Test_ParseMysqlVersionString_OnAnArchitectureWithNoClient_NamesTheArchitecture(t *testing.T) {+ if runtime.GOARCH != "arm64" {+ t.Skip("MySQL 5.7 ships a client on amd64; only arm64 refuses it")+ }++ _, err := parseMysqlVersionString("5.7.44")+ if err == nil {+ t.Fatal("expected MySQL 5.7 to be refused on arm64")+ }++ if !strings.Contains(err.Error(), "arm") {+ t.Errorf("the refusal should name the architecture, got %q", err.Error())+ }+}diff --git a/backend/internal/features/restores/service.go b/backend/internal/features/restores/service.goindex d4fc7407..241608fc 100644--- a/backend/internal/features/restores/service.go+++ b/backend/internal/features/restores/service.go@@ -271,10 +271,14 @@ func (s *RestoreService) validateVersionCompatibility(if requestDTO.MysqlDatabase == nil {return errors.New("mysql database configuration is required for restore")}- if tools.IsMysqlBackupVersionHigherThanRestoreVersion(+ isMysqlDowngrade, err := tools.IsMysqlBackupVersionHigherThanRestoreVersion(backupDatabase.Mysql.Version,requestDTO.MysqlDatabase.Version,- ) {+ )+ if err != nil {+ return err+ }+ if isMysqlDowngrade {return errors.New(`backup database version is higher than restore database version. ` +`Should be restored to the same version as the backup database or higher. ` +`For example, you can restore MySQL 8.0 backup to MySQL 8.0, 8.4 or higher. But cannot restore to 5.7`)@@ -283,10 +287,14 @@ func (s *RestoreService) validateVersionCompatibility(if requestDTO.MariadbDatabase == nil {return errors.New("mariadb database configuration is required for restore")}- if tools.IsMariadbBackupVersionHigherThanRestoreVersion(+ isMariadbDowngrade, err := tools.IsMariadbBackupVersionHigherThanRestoreVersion(backupDatabase.Mariadb.Version,requestDTO.MariadbDatabase.Version,- ) {+ )+ if err != nil {+ return err+ }+ if isMariadbDowngrade {return errors.New(`backup database version is higher than restore database version. ` +`Should be restored to the same version as the backup database or higher. ` +`For example, you can restore MariaDB 10.11 backup to MariaDB 10.11, 11.4 or higher. But cannot restore to 10.6`)diff --git a/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go b/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.goindex 75a6240d..76567de7 100644--- a/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/mariadb/restore_backup_uc.go@@ -95,10 +95,15 @@ func (uc *RestoreMariadbBackupUsecase) Execute(args = append(args, *mdb.Database)}+ mariadbBin, err := tools.GetMariadbExecutable(mdb.Version, tools.MariadbExecutableMariadb)+ if err != nil {+ return err+ }+return uc.restoreFromStorage(parentCtx,originalDB,- tools.GetMariadbExecutable(mdb.Version, tools.MariadbExecutableMariadb),+ mariadbBin,args,mdb.Password,backup,diff --git a/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go b/backend/internal/features/restores/usecases/mysql/restore_backup_uc.goindex 5f7a43aa..40a4cbbc 100644--- a/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go+++ b/backend/internal/features/restores/usecases/mysql/restore_backup_uc.go@@ -84,10 +84,15 @@ func (uc *RestoreMysqlBackupUsecase) Execute(args = append(args, *my.Database)}+ mysqlBin, err := tools.GetMysqlExecutable(my.Version, tools.MysqlExecutableMysql)+ if err != nil {+ return err+ }+return uc.restoreFromStorage(parentCtx,originalDB,- tools.GetMysqlExecutable(my.Version, tools.MysqlExecutableMysql),+ mysqlBin,args,my.Password,backup,diff --git a/backend/internal/features/tests/logical/mariadb/backup_restore_test.go b/backend/internal/features/tests/logical/mariadb/backup_restore_test.goindex 2a90741a..7f199fd3 100644--- a/backend/internal/features/tests/logical/mariadb/backup_restore_test.go+++ b/backend/internal/features/tests/logical/mariadb/backup_restore_test.go@@ -71,12 +71,17 @@ type mariadbVersion struct {runsExcludeTests bool // exclude-tables/exclude-events run only on 10.11 and 11.4}+// 5.5 and 10.1 are here because they are the only servers the legacy client+// tier serves: without them nothing dumps through that tier.var mariadbVersions = []mariadbVersion{+ {"MariaDB 5.5", tools.MariadbVersion55, "mariadb:5.5", false},+ {"MariaDB 10.1", tools.MariadbVersion101, "mariadb:10.1", false},{"MariaDB 10.6", tools.MariadbVersion106, "mariadb:10.6", false},{"MariaDB 10.11", tools.MariadbVersion1011, "mariadb:10.11", true},{"MariaDB 11.4", tools.MariadbVersion114, "mariadb:11.4", true},{"MariaDB 11.8", tools.MariadbVersion118, "mariadb:11.8", false},{"MariaDB 12.0", tools.MariadbVersion120, "mariadb:12.0", false},+ {"MariaDB 13.0", tools.MariadbVersion130, "mariadb:13.0", true},}// Test_MariadbBackupRestore_AcrossSupportedVersions boots each MariaDB version once, runs everydiff --git a/backend/internal/features/tests/logical/mysql/backup_restore_test.go b/backend/internal/features/tests/logical/mysql/backup_restore_test.goindex 1309465f..abc5e96c 100644--- a/backend/internal/features/tests/logical/mysql/backup_restore_test.go+++ b/backend/internal/features/tests/logical/mysql/backup_restore_test.go@@ -75,6 +75,7 @@ var mysqlVersions = []mysqlVersion{{"MySQL 8.0", tools.MysqlVersion80, "mysql:8.0"},{"MySQL 8.4", tools.MysqlVersion84, "mysql:8.4"},{"MySQL 9", tools.MysqlVersion9, "mysql:9"},+ {"MySQL 26", tools.MysqlVersion26, "mysql:26.7"},}// Test_MysqlBackupRestore_AcrossSupportedVersions boots each MySQL version once, runs everydiff --git a/backend/internal/util/testing/containers/mariadb.go b/backend/internal/util/testing/containers/mariadb.goindex fd5fcbd8..b219cf10 100644--- a/backend/internal/util/testing/containers/mariadb.go+++ b/backend/internal/util/testing/containers/mariadb.go@@ -16,12 +16,26 @@ const (const mariadbPort = "3306/tcp"-func mariadbEnv() map[string]string {+// legacyMariadbImages predate the MARIADB_* variables the entrypoint gained in+// 10.5; they provision themselves from the MYSQL_* names only, and exit with+// "database is uninitialized and password option is not specified" when given+// the newer ones.+var legacyMariadbImages = map[string]bool{+ "mariadb:5.5": true,+ "mariadb:10.1": true,+}++func mariadbEnv(image string) map[string]string {+ prefix := "MARIADB"+ if legacyMariadbImages[image] {+ prefix = "MYSQL"+ }+return map[string]string{- "MARIADB_ROOT_PASSWORD": MariadbRootPassword,- "MARIADB_DATABASE": MariadbDatabase,- "MARIADB_USER": MariadbUsername,- "MARIADB_PASSWORD": MariadbPassword,+ prefix + "_ROOT_PASSWORD": MariadbRootPassword,+ prefix + "_DATABASE": MariadbDatabase,+ prefix + "_USER": MariadbUsername,+ prefix + "_PASSWORD": MariadbPassword,}}@@ -40,7 +54,7 @@ func mariadbRequest(image string) testcontainers.ContainerRequest {return testcontainers.ContainerRequest{Image: image,ExposedPorts: []string{mariadbPort},- Env: mariadbEnv(),+ Env: mariadbEnv(image),Cmd: mysqlFamilyCmd(),Tmpfs: map[string]string{"/var/lib/mysql": dataDirTmpfsOptions},WaitingFor: mysqlFamilyReady(mariadbReadinessSpec(false)),diff --git a/backend/internal/util/tools/common.go b/backend/internal/util/tools/common.goindex f9afaf9d..39a80cd8 100644--- a/backend/internal/util/tools/common.go+++ b/backend/internal/util/tools/common.go@@ -1,16 +1,36 @@package toolsimport (+ "context""errors""fmt""log/slog""os"+ "os/exec""path/filepath""strings"+ "sync"+ "time""databasus-backend/internal/util/logger")+// clientVersionTimeout bounds one --version call. A client that has not+// answered by then is as unusable as one that is missing.+const clientVersionTimeout = 10 * time.Second++// binDirVersionParser reads the release a client reports out of its+// --version output. The shape differs per engine, so each engine brings its+// own parser rather than the check guessing at the first number it finds.+type binDirVersionParser func(output string) (string, error)++// executionVerdicts caches, per bin directory, the outcome of starting its+// clients. The container probes the health endpoint every 30 seconds, and+// starting every shipped binary on each probe is how a loaded host reports a+// false unhealthy, so the binaries run once per process and later checks+// reuse the verdict.+var executionVerdicts sync.Map+// ToolCheckResult is one DB-version bundle's verification outcome. A bundle// is considered fatal when missing/broken should crash the app at startup// (Postgres) and non-fatal otherwise (MySQL, MariaDB, MongoDB).@@ -54,8 +74,86 @@ func checkBinDir(binDir string, requiredCommands []string) []error {return errs}+// runBinDirChecks verifies the bundle's files are in place and, once per+// process, that they start and report a version on the release line the+// bundle is registered under. Pass an empty releaseLine for a bundle whose+// directory is not named after a version.+func runBinDirChecks(+ binDir string,+ requiredCommands []string,+ releaseLine string,+ parseVersion binDirVersionParser,+) []error {+ if errs := checkBinDir(binDir, requiredCommands); len(errs) > 0 {+ return errs+ }++ if cached, ok := executionVerdicts.Load(binDir); ok {+ if verdict, isVerdict := cached.([]error); isVerdict {+ return verdict+ }+ }++ errs := runClients(binDir, requiredCommands, releaseLine, parseVersion)+ executionVerdicts.Store(binDir, errs)++ return errs+}++// runClients starts every required command with --version and checks what it+// answers. Presence and the executable bit say nothing about a missing shared+// library, which is the failure a new bundle is most likely to introduce.+func runClients(+ binDir string,+ requiredCommands []string,+ releaseLine string,+ parseVersion binDirVersionParser,+) []error {+ var errs []error++ for _, cmd := range requiredCommands {+ cmdPath := filepath.Join(binDir, cmd)++ ctx, cancel := context.WithTimeout(context.Background(), clientVersionTimeout)+ output, err := exec.CommandContext(ctx, cmdPath, "--version").CombinedOutput()+ cancel()++ if err != nil {+ errs = append(errs, fmt.Errorf(+ "client command cannot run: %s: %w: %s",+ cmdPath, err, strings.TrimSpace(string(output)),+ ))++ continue+ }++ if releaseLine == "" {+ continue+ }++ reported, err := parseVersion(string(output))+ if err != nil {+ errs = append(errs, fmt.Errorf("%s: %w", cmdPath, err))++ continue+ }++ if !isVersionOnReleaseLine(reported, releaseLine) {+ errs = append(errs, fmt.Errorf(+ "client command %s reports version %s, which is not on the %s release line its bundle is registered under",+ cmdPath,+ reported,+ releaseLine,+ ))+ }+ }++ return errs+}+// CheckAllClientTools verifies every expected client binary for the current-// arch is present and executable. Pure: never logs, never exits. Used by+// arch is present, executable, starts, and reports a version on the release+// line its bundle is registered under. Pure: never logs, never exits. Used by// startup (config) and runtime (healthcheck).func CheckAllClientTools() []ToolCheckResult {results := checkPostgresql()@@ -99,7 +197,9 @@ func LogAndExitIfClientToolsBroken(toolsLogger *slog.Logger, isShowLogs bool) {}// ClientToolsHealthError returns an aggregated error if any fatal-tier bundle-// has check failures, else nil. Used by the healthcheck endpoint.+// has check failures, else nil. Used by the healthcheck endpoint, which+// re-reads the bundle files on every probe but reuses the startup verdict on+// whether the binaries start.func ClientToolsHealthError() error {results := CheckAllClientTools()diff --git a/backend/internal/util/tools/common_test.go b/backend/internal/util/tools/common_test.gonew file mode 100644index 00000000..ecf783f7--- /dev/null+++ b/backend/internal/util/tools/common_test.go@@ -0,0 +1,91 @@+package tools++import (+ "os"+ "path/filepath"+ "strconv"+ "strings"+ "testing"+)++// writeFakeClient puts an executable script in dir that prints output when run+// with any argument, so the check can be exercised without a real bundle.+func writeFakeClient(t *testing.T, dir, name, output string) {+ t.Helper()++ script := "#!/bin/sh\necho " + strconv.Quote(output) + "\n"+ path := filepath.Join(dir, name)++ if err := os.WriteFile(path, []byte(script), 0o755); err != nil {+ t.Fatalf("failed to write fake client %s: %v", path, err)+ }+}++func Test_RunClients_WhenTheClientReportsItsOwnLine_ReportsNoErrors(t *testing.T) {+ binDir := t.TempDir()+ writeFakeClient(t, binDir, "mariadb-dump",+ "mariadb-dump Ver 10.19 Distrib 10.6.28-MariaDB, for debian-linux-gnu (x86_64)")++ errs := runClients(binDir, []string{"mariadb-dump"}, "10.6", parseMariadbClientVersion)+ if len(errs) != 0 {+ t.Fatalf("expected no errors, got %v", errs)+ }+}++func Test_RunClients_WhenTheBundleHoldsAForeignVersion_ReportsAFailure(t *testing.T) {+ binDir := t.TempDir()+ // The state assets/tools/arm/mariadb/mariadb-10.6/ was in: a 10.11 binary+ // under a directory named for the 10.6 line.+ writeFakeClient(t, binDir, "mariadb-dump",+ "mariadb-dump Ver 10.19 Distrib 10.11.14-MariaDB, for debian-linux-gnu (aarch64)")++ errs := runClients(binDir, []string{"mariadb-dump"}, "10.6", parseMariadbClientVersion)+ if len(errs) != 1 {+ t.Fatalf("expected one error, got %v", errs)+ }++ message := errs[0].Error()+ if !strings.Contains(message, "10.11.14") || !strings.Contains(message, "10.6") {+ t.Errorf("error should name the version found and the line expected, got %q", message)+ }+}++func Test_RunClients_WhenTheClientCannotStart_ReportsAFailure(t *testing.T) {+ binDir := t.TempDir()+ path := filepath.Join(binDir, "mysqldump")+ // An ELF header this host cannot load stands in for a missing shared+ // library: the file is there and executable, and still cannot run.+ if err := os.WriteFile(path, []byte("\x7fELF not a loadable image"), 0o755); err != nil {+ t.Fatalf("failed to write the unusable client: %v", err)+ }++ errs := runClients(binDir, []string{"mysqldump"}, "8.0", parseMysqlClientVersion)+ if len(errs) != 1 {+ t.Fatalf("expected one error, got %v", errs)+ }++ if !strings.Contains(errs[0].Error(), "cannot run") {+ t.Errorf("error should say the client cannot run, got %q", errs[0].Error())+ }+}++func Test_RunClients_WithNoReleaseLineToHoldTheBundleTo_OnlyRequiresTheClientToStart(t *testing.T) {+ binDir := t.TempDir()+ writeFakeClient(t, binDir, "mongodump", "mongodump version: 100.16.1")++ errs := runClients(binDir, []string{"mongodump"}, "", nil)+ if len(errs) != 0 {+ t.Fatalf("expected no errors, got %v", errs)+ }+}++func Test_CheckAllClientTools_AgainstTheShippedBundles_ReportsEveryBundleVerified(t *testing.T) {+ for _, result := range CheckAllClientTools() {+ if len(result.Errors) == 0 {+ continue+ }++ // arm-only gaps cannot appear here: the test runs on the host's arch.+ t.Errorf("%s %s (%s): %v", result.Db, result.Version, result.BinDir, result.Errors)+ }+}diff --git a/backend/internal/util/tools/mariadb.go b/backend/internal/util/tools/mariadb.goindex cfa4f0b6..ffcc1200 100644--- a/backend/internal/util/tools/mariadb.go+++ b/backend/internal/util/tools/mariadb.go@@ -3,12 +3,14 @@ package toolsimport ("fmt""path/filepath"+ "regexp""strings")var mariadbClientVersions = []MariadbClientVersion{MariadbClientLegacy,MariadbClientModern,+ MariadbClient13,}var mariadbRequired = []string{@@ -16,6 +18,12 @@ var mariadbRequired = []string{string(MariadbExecutableMariadb),}+// Both MariaDB --version shapes put the server line immediately before+// "-MariaDB": "mariadb-dump Ver 10.19 Distrib 10.6.28-MariaDB, for ..." on+// 10.6, "mariadb-dump from 13.0.2-MariaDB, client 10.20 for ..." on newer+// clients. The other number in each line is the client protocol version.+var mariadbVersionPattern = regexp.MustCompile(`(\d[\d.]*)-MariaDB`)+type MariadbVersion stringconst (@@ -30,6 +38,7 @@ const (MariadbVersion114 MariadbVersion = "11.4"MariadbVersion118 MariadbVersion = "11.8"MariadbVersion120 MariadbVersion = "12.0"+ MariadbVersion130 MariadbVersion = "13.0")// MariadbClientVersion is the client tool version installed in assets.@@ -39,8 +48,10 @@ const (// MariadbClientLegacy is used for older MariaDB servers (5.5, 10.1) that// don't have the generation_expression column in information_schema.columns.MariadbClientLegacy MariadbClientVersion = "10.6"- // MariadbClientModern is used for newer MariaDB servers (10.2+).- MariadbClientModern MariadbClientVersion = "12.1"+ // MariadbClientModern is used for servers from 10.2 up to the 12 line.+ MariadbClientModern MariadbClientVersion = "12.3"+ // MariadbClient13 serves the 13 line, which the 12.3 client predates.+ MariadbClient13 MariadbClientVersion = "13.0")type MariadbExecutable string@@ -50,27 +61,52 @@ const (MariadbExecutableMariadb MariadbExecutable = "mariadb")-// GetMariadbClientVersionForServer returns the client version that talks to-// the given server version. The 12.1 client uses queries referencing-// generation_expression (added in MariaDB 10.2), so older servers (5.5, 10.1)-// need the 10.6 legacy client.+// GetMariadbClientVersionForServer returns the client version designated to+// talk to the given server version. The modern client uses queries+// referencing generation_expression (added in MariaDB 10.2), so older servers+// (5.5, 10.1) need the 10.6 legacy client; the 13 line gets its own client.func GetMariadbClientVersionForServer(serverVersion MariadbVersion) MariadbClientVersion {switch serverVersion {case MariadbVersion55, MariadbVersion101:return MariadbClientLegacy+ case MariadbVersion130:+ return MariadbClient13default:return MariadbClientModern}}// GetMariadbExecutable returns the absolute path to a MariaDB client binary-// appropriate for the given server version.+// appropriate for the given server version. It fails when this architecture+// ships no bundle for the designated client, so the caller reports a+// supported-version problem instead of a missing file.func GetMariadbExecutable(serverVersion MariadbVersion,executable MariadbExecutable,-) string {+) (string, error) {+ if err := RequireMariadbBundle(serverVersion); err != nil {+ return "", err+ }+clientVersion := GetMariadbClientVersionForServer(serverVersion)- return filepath.Join(getMariadbBinDir(clientVersion), string(executable))++ return filepath.Join(getMariadbBinDir(clientVersion), string(executable)), nil+}++// RequireMariadbBundle reports whether this architecture ships the client+// designated for the given server version, naming the architecture when it+// does not.+func RequireMariadbBundle(serverVersion MariadbVersion) error {+ clientVersion := GetMariadbClientVersionForServer(serverVersion)++ if errs := checkBinDir(getMariadbBinDir(clientVersion), mariadbRequired); len(errs) > 0 {+ return fmt.Errorf(+ "MariaDB %s is not supported on %s: no client is shipped for this architecture",+ serverVersion, archAssetsKey(),+ )+ }++ return nil}func getMariadbBinDir(clientVersion MariadbClientVersion) string {@@ -82,8 +118,8 @@ func getMariadbBinDir(clientVersion MariadbClientVersion) string {)}-// checkMariadb verifies the legacy and modern MariaDB client bundles.-// Non-fatal — missing bundles disable that client tier.+// checkMariadb verifies every MariaDB client bundle. Non-fatal — a missing+// bundle disables that client tier.func checkMariadb() []ToolCheckResult {results := make([]ToolCheckResult, 0, len(mariadbClientVersions))@@ -94,7 +130,7 @@ func checkMariadb() []ToolCheckResult {Db: "mariadb",Version: string(cv),BinDir: binDir,- Errors: checkBinDir(binDir, mariadbRequired),+ Errors: runBinDirChecks(binDir, mariadbRequired, string(cv), parseMariadbClientVersion),IsFatal: false,})}@@ -102,54 +138,28 @@ func checkMariadb() []ToolCheckResult {return results}+// parseMariadbClientVersion reads the server release the client was built for+// out of its --version output.+func parseMariadbClientVersion(output string) (string, error) {+ match := mariadbVersionPattern.FindStringSubmatch(output)+ if match == nil {+ return "", fmt.Errorf("could not read a MariaDB version out of %q", strings.TrimSpace(output))+ }++ return match[1], nil+}+// IsMariadbBackupVersionHigherThanRestoreVersion reports whether a backup// produced on backupVersion would be downgrade-restoring onto restoreVersion.func IsMariadbBackupVersionHigherThanRestoreVersion(backupVersion, restoreVersion MariadbVersion,-) bool {- versionOrder := map[MariadbVersion]int{- MariadbVersion55: 1,- MariadbVersion101: 2,- MariadbVersion102: 3,- MariadbVersion103: 4,- MariadbVersion104: 5,- MariadbVersion105: 6,- MariadbVersion106: 7,- MariadbVersion1011: 8,- MariadbVersion114: 9,- MariadbVersion118: 10,- MariadbVersion120: 11,+) (bool, error) {+ order, err := compareReleaseLines(string(backupVersion), string(restoreVersion))+ if err != nil {+ return false, fmt.Errorf("cannot order MariaDB versions: %w", err)}- return versionOrder[backupVersion] > versionOrder[restoreVersion]-}-func GetMariadbVersionEnum(version string) MariadbVersion {- switch version {- case "5.5":- return MariadbVersion55- case "10.1":- return MariadbVersion101- case "10.2":- return MariadbVersion102- case "10.3":- return MariadbVersion103- case "10.4":- return MariadbVersion104- case "10.5":- return MariadbVersion105- case "10.6":- return MariadbVersion106- case "10.11":- return MariadbVersion1011- case "11.4":- return MariadbVersion114- case "11.8":- return MariadbVersion118- case "12.0":- return MariadbVersion120- default:- panic(fmt.Sprintf("invalid mariadb version: %s", version))- }+ return order > 0, nil}// EscapeMariadbPassword escapes special characters for the MariaDB .my.cnfdiff --git a/backend/internal/util/tools/mariadb_test.go b/backend/internal/util/tools/mariadb_test.gonew file mode 100644index 00000000..48857eb1--- /dev/null+++ b/backend/internal/util/tools/mariadb_test.go@@ -0,0 +1,84 @@+package tools++import "testing"++func Test_ParseMariadbClientVersion_AcrossTheTwoOutputShapes_ReadsTheServerLine(t *testing.T) {+ cases := []struct {+ output, expected string+ }{+ // The 10.6 client prints its protocol version first; 10.19 is not a+ // MariaDB release.+ {"mariadb-dump Ver 10.19 Distrib 10.6.28-MariaDB, for debian-linux-gnu (x86_64)", "10.6.28"},+ {"mariadb-dump from 12.3.3-MariaDB, client 10.20 for debian-linux-gnu (x86_64)", "12.3.3"},+ {"mariadb from 13.0.2-MariaDB, client 10.20 for debian-linux-gnu (x86_64)", "13.0.2"},+ }++ for _, c := range cases {+ got, err := parseMariadbClientVersion(c.output)+ if err != nil {+ t.Fatalf("parsing %q: %v", c.output, err)+ }++ if got != c.expected {+ t.Errorf("parsing %q: got %s, expected %s", c.output, got, c.expected)+ }+ }+}++func Test_ParseMariadbClientVersion_WithOutputCarryingNoVersion_ReturnsError(t *testing.T) {+ if _, err := parseMariadbClientVersion("mariadb-dump: command not found"); err == nil {+ t.Error("expected an error when the output carries no version")+ }+}++func Test_GetMariadbClientVersionForServer_AcrossTheThreeTiers_PicksTheDesignatedClient(t *testing.T) {+ cases := []struct {+ server MariadbVersion+ client MariadbClientVersion+ }{+ {MariadbVersion55, MariadbClientLegacy},+ {MariadbVersion101, MariadbClientLegacy},+ {MariadbVersion102, MariadbClientModern},+ {MariadbVersion1011, MariadbClientModern},+ {MariadbVersion120, MariadbClientModern},+ {MariadbVersion130, MariadbClient13},+ }++ for _, c := range cases {+ if got := GetMariadbClientVersionForServer(c.server); got != c.client {+ t.Errorf("server %s: got client %s, expected %s", c.server, got, c.client)+ }+ }+}++func Test_IsMariadbBackupVersionHigherThanRestoreVersion_AcrossTheThirteenLine_RefusesDowngrades(t *testing.T) {+ cases := []struct {+ backup, restore MariadbVersion+ isDowngrade bool+ }{+ {MariadbVersion130, MariadbVersion120, true},+ {MariadbVersion130, MariadbVersion118, true},+ {MariadbVersion130, MariadbVersion130, false},+ {MariadbVersion120, MariadbVersion130, false},+ {MariadbVersion1011, MariadbVersion106, true},+ {MariadbVersion106, MariadbVersion1011, false},+ }++ for _, c := range cases {+ got, err := IsMariadbBackupVersionHigherThanRestoreVersion(c.backup, c.restore)+ if err != nil {+ t.Fatalf("ordering %s onto %s: %v", c.backup, c.restore, err)+ }++ if got != c.isDowngrade {+ t.Errorf("restoring a %s backup onto %s: got %v, expected %v",+ c.backup, c.restore, got, c.isDowngrade)+ }+ }+}++func Test_IsMariadbBackupVersionHigherThanRestoreVersion_WithAnIdentityItCannotRead_ReturnsError(t *testing.T) {+ if _, err := IsMariadbBackupVersionHigherThanRestoreVersion("", MariadbVersion130); err == nil {+ t.Error("an identity the guard cannot order must be an error, not a silent zero")+ }+}diff --git a/backend/internal/util/tools/mongodb.go b/backend/internal/util/tools/mongodb.goindex 177dada0..8b5ad7bb 100644--- a/backend/internal/util/tools/mongodb.go+++ b/backend/internal/util/tools/mongodb.go@@ -48,7 +48,10 @@ func checkMongodb() []ToolCheckResult {Db: "mongodb",Version: "tools",BinDir: binDir,- Errors: checkBinDir(binDir, mongodbRequired),+ // The MongoDB tools bundle is not named after a release line — one+ // client serves every supported server — so there is no version to+ // hold it to, only the requirement that it starts.+ Errors: runBinDirChecks(binDir, mongodbRequired, "", nil),IsFatal: false,}}}diff --git a/backend/internal/util/tools/mysql.go b/backend/internal/util/tools/mysql.goindex 28a23ace..b3105d7d 100644--- a/backend/internal/util/tools/mysql.go+++ b/backend/internal/util/tools/mysql.go@@ -3,6 +3,7 @@ package toolsimport ("fmt""path/filepath"+ "regexp""strings")@@ -11,6 +12,7 @@ var mysqlVersions = []MysqlVersion{MysqlVersion80,MysqlVersion84,MysqlVersion9,+ MysqlVersion26,}var mysqlRequired = []string{@@ -18,6 +20,14 @@ var mysqlRequired = []string{string(MysqlExecutableMysql),}+// MySQL 8.0 and later answer --version with "mysqldump Ver 8.0.46 for ...",+// while 5.7 answers with its own tool version and puts the server line behind+// "Distrib": "mysqldump Ver 10.13 Distrib 5.7.44, for ...".+var (+ mysqlDistribVersionPattern = regexp.MustCompile(`Distrib\s+(\d[\d.]*)`)+ mysqlVerVersionPattern = regexp.MustCompile(`Ver\s+(\d[\d.]*)`)+)+type MysqlVersion stringconst (@@ -25,6 +35,7 @@ const (MysqlVersion80 MysqlVersion = "8.0"MysqlVersion84 MysqlVersion = "8.4"MysqlVersion9 MysqlVersion = "9"+ MysqlVersion26 MysqlVersion = "26")type MysqlExecutable string@@ -35,9 +46,29 @@ const ()// GetMysqlExecutable returns the absolute path to a MySQL client binary for-// the given version (mysqldump or mysql).-func GetMysqlExecutable(version MysqlVersion, executable MysqlExecutable) string {- return filepath.Join(getMysqlBinDir(version), string(executable))+// the given version (mysqldump or mysql). It fails when this architecture+// ships no bundle for that version — upstream never built a 5.7 client for+// arm64 — so the caller reports a supported-version problem instead of a+// missing file.+func GetMysqlExecutable(version MysqlVersion, executable MysqlExecutable) (string, error) {+ if err := RequireMysqlBundle(version); err != nil {+ return "", err+ }++ return filepath.Join(getMysqlBinDir(version), string(executable)), nil+}++// RequireMysqlBundle reports whether this architecture ships a client for the+// given MySQL version, naming the architecture when it does not.+func RequireMysqlBundle(version MysqlVersion) error {+ if errs := checkBinDir(getMysqlBinDir(version), mysqlRequired); len(errs) > 0 {+ return fmt.Errorf(+ "MySQL %s is not supported on %s: no client is shipped for this architecture",+ version, archAssetsKey(),+ )+ }++ return nil}func getMysqlBinDir(version MysqlVersion) string {@@ -61,7 +92,7 @@ func checkMysql() []ToolCheckResult {Db: "mysql",Version: string(v),BinDir: binDir,- Errors: checkBinDir(binDir, mysqlRequired),+ Errors: runBinDirChecks(binDir, mysqlRequired, string(v), parseMysqlClientVersion),IsFatal: false,})}@@ -69,18 +100,31 @@ func checkMysql() []ToolCheckResult {return results}+// parseMysqlClientVersion reads the release the client reports out of its+// --version output.+func parseMysqlClientVersion(output string) (string, error) {+ if match := mysqlDistribVersionPattern.FindStringSubmatch(output); match != nil {+ return strings.TrimSuffix(match[1], "."), nil+ }++ if match := mysqlVerVersionPattern.FindStringSubmatch(output); match != nil {+ return strings.TrimSuffix(match[1], "."), nil+ }++ return "", fmt.Errorf("could not read a MySQL version out of %q", strings.TrimSpace(output))+}+// IsMysqlBackupVersionHigherThanRestoreVersion reports whether a backup// produced on backupVersion would be downgrade-restoring onto restoreVersion.func IsMysqlBackupVersionHigherThanRestoreVersion(backupVersion, restoreVersion MysqlVersion,-) bool {- versionOrder := map[MysqlVersion]int{- MysqlVersion57: 1,- MysqlVersion80: 2,- MysqlVersion84: 3,- MysqlVersion9: 4,+) (bool, error) {+ order, err := compareReleaseLines(string(backupVersion), string(restoreVersion))+ if err != nil {+ return false, fmt.Errorf("cannot order MySQL versions: %w", err)}- return versionOrder[backupVersion] > versionOrder[restoreVersion]++ return order > 0, nil}// EscapeMysqlPassword escapes special characters for the MySQL .my.cnf file@@ -90,18 +134,3 @@ func EscapeMysqlPassword(password string) string {password = strings.ReplaceAll(password, "\"", "\\\"")return password}--func GetMysqlVersionEnum(version string) MysqlVersion {- switch version {- case "5.7":- return MysqlVersion57- case "8.0":- return MysqlVersion80- case "8.4":- return MysqlVersion84- case "9":- return MysqlVersion9- default:- panic(fmt.Sprintf("invalid mysql version: %s", version))- }-}diff --git a/backend/internal/util/tools/mysql_test.go b/backend/internal/util/tools/mysql_test.gonew file mode 100644index 00000000..4c781206--- /dev/null+++ b/backend/internal/util/tools/mysql_test.go@@ -0,0 +1,65 @@+package tools++import "testing"++func Test_ParseMysqlClientVersion_AcrossTheTwoOutputShapes_ReadsTheRelease(t *testing.T) {+ cases := []struct {+ output, expected string+ }{+ {"mysqldump Ver 26.7.0 for Linux on x86_64 (MySQL Community Server - GPL)", "26.7.0"},+ {"mysql Ver 9.7.2 for Linux on x86_64 (MySQL Community Server - GPL)", "9.7.2"},+ // 5.7 reports the tool's own version first and the server line behind+ // "Distrib", so the first number in the line is the wrong one.+ {"mysqldump Ver 10.13 Distrib 5.7.44, for linux-glibc2.12 (x86_64)", "5.7.44"},+ {"mysql Ver 14.14 Distrib 5.7.44, for linux-glibc2.12 (x86_64) using EditLine wrapper", "5.7.44"},+ }++ for _, c := range cases {+ got, err := parseMysqlClientVersion(c.output)+ if err != nil {+ t.Fatalf("parsing %q: %v", c.output, err)+ }++ if got != c.expected {+ t.Errorf("parsing %q: got %s, expected %s", c.output, got, c.expected)+ }+ }+}++func Test_ParseMysqlClientVersion_WithOutputCarryingNoVersion_ReturnsError(t *testing.T) {+ if _, err := parseMysqlClientVersion("mysqldump: command not found"); err == nil {+ t.Error("expected an error when the output carries no version")+ }+}++func Test_IsMysqlBackupVersionHigherThanRestoreVersion_AcrossTheCalendarLine_RefusesDowngrades(t *testing.T) {+ cases := []struct {+ backup, restore MysqlVersion+ isDowngrade bool+ }{+ {MysqlVersion26, MysqlVersion9, true},+ {MysqlVersion26, MysqlVersion80, true},+ {MysqlVersion26, MysqlVersion26, false},+ {MysqlVersion9, MysqlVersion26, false},+ {MysqlVersion84, MysqlVersion80, true},+ {MysqlVersion57, MysqlVersion80, false},+ }++ for _, c := range cases {+ got, err := IsMysqlBackupVersionHigherThanRestoreVersion(c.backup, c.restore)+ if err != nil {+ t.Fatalf("ordering %s onto %s: %v", c.backup, c.restore, err)+ }++ if got != c.isDowngrade {+ t.Errorf("restoring a %s backup onto %s: got %v, expected %v",+ c.backup, c.restore, got, c.isDowngrade)+ }+ }+}++func Test_IsMysqlBackupVersionHigherThanRestoreVersion_WithAnIdentityItCannotRead_ReturnsError(t *testing.T) {+ if _, err := IsMysqlBackupVersionHigherThanRestoreVersion("", MysqlVersion9); err == nil {+ t.Error("an identity the guard cannot order must be an error, not a silent zero")+ }+}diff --git a/backend/internal/util/tools/postgresql.go b/backend/internal/util/tools/postgresql.goindex f8e90c17..5c596071 100644--- a/backend/internal/util/tools/postgresql.go+++ b/backend/internal/util/tools/postgresql.go@@ -3,9 +3,13 @@ package toolsimport ("fmt""path/filepath"+ "regexp""strings")+// Every PostgreSQL client answers --version with "<tool> (PostgreSQL) 17.10".+var postgresqlVersionPattern = regexp.MustCompile(`\(PostgreSQL\)\s+(\d[\d.]*)`)+var postgresqlVersions = []PostgresqlVersion{PostgresqlVersion12,PostgresqlVersion13,@@ -71,7 +75,12 @@ func checkPostgresql() []ToolCheckResult {Db: "postgresql",Version: string(v),BinDir: binDir,- Errors: checkBinDir(binDir, getPostgresqlRequiredForVersion(v)),+ Errors: runBinDirChecks(+ binDir,+ getPostgresqlRequiredForVersion(v),+ string(v),+ parsePostgresqlClientVersion,+ ),IsFatal: true,})}@@ -79,6 +88,20 @@ func checkPostgresql() []ToolCheckResult {return results}+// parsePostgresqlClientVersion reads the release the client reports out of+// its --version output.+func parsePostgresqlClientVersion(output string) (string, error) {+ match := postgresqlVersionPattern.FindStringSubmatch(output)+ if match == nil {+ return "", fmt.Errorf(+ "could not read a PostgreSQL version out of %q",+ strings.TrimSpace(output),+ )+ }++ return match[1], nil+}+// EscapePgpassField escapes special characters for the .pgpass file format.// PostgreSQL requires backslash → \\ and colon → \:; newlines and carriage// returns are stripped to prevent format corruption.diff --git a/backend/internal/util/tools/releaseline.go b/backend/internal/util/tools/releaseline.gonew file mode 100644index 00000000..835193b4--- /dev/null+++ b/backend/internal/util/tools/releaseline.go@@ -0,0 +1,92 @@+package tools++import (+ "fmt"+ "strconv"+ "strings"+)++// A version identity names a release line rather than an exact release, so it+// may carry fewer components than the version a server or a client reports:+// "26" is every MySQL 26.x, "10.6" every MariaDB 10.6.x.++// parseReleaseLine splits a version identity into its numeric components.+func parseReleaseLine(identity string) ([]int, error) {+ if identity == "" {+ return nil, fmt.Errorf("empty version identity")+ }++ parts := strings.Split(identity, ".")+ numbers := make([]int, 0, len(parts))++ for _, part := range parts {+ number, err := strconv.Atoi(part)+ if err != nil {+ return nil, fmt.Errorf("version identity %q is not a dotted number", identity)+ }++ numbers = append(numbers, number)+ }++ return numbers, nil+}++// compareReleaseLines orders two version identities numerically and returns a+// negative number, zero or a positive number the way strings.Compare does.+// Ordering by the numbers means an identity added later sorts correctly+// without an entry in any table.+func compareReleaseLines(left, right string) (int, error) {+ leftNumbers, err := parseReleaseLine(left)+ if err != nil {+ return 0, err+ }++ rightNumbers, err := parseReleaseLine(right)+ if err != nil {+ return 0, err+ }++ for i := 0; i < len(leftNumbers) || i < len(rightNumbers); i++ {+ leftNumber, rightNumber := 0, 0+ if i < len(leftNumbers) {+ leftNumber = leftNumbers[i]+ }+ if i < len(rightNumbers) {+ rightNumber = rightNumbers[i]+ }++ if leftNumber != rightNumber {+ return leftNumber - rightNumber, nil+ }+ }++ return 0, nil+}++// isVersionOnReleaseLine reports whether a reported version, such as the+// "10.6.28" a client prints, belongs to the line an identity names. A client+// may sit at a later patch than the line's own digits suggest; it may never+// come from a different line.+func isVersionOnReleaseLine(reported, line string) bool {+ reportedNumbers, err := parseReleaseLine(reported)+ if err != nil {+ return false+ }++ lineNumbers, err := parseReleaseLine(line)+ if err != nil {+ return false+ }++ if len(lineNumbers) > len(reportedNumbers) {+ return false+ }++ for i, lineNumber := range lineNumbers {+ if reportedNumbers[i] != lineNumber {+ return false+ }+ }++ return true+}diff --git a/backend/internal/util/tools/releaseline_test.go b/backend/internal/util/tools/releaseline_test.gonew file mode 100644index 00000000..0db3e972--- /dev/null+++ b/backend/internal/util/tools/releaseline_test.go@@ -0,0 +1,79 @@+package tools++import "testing"++func Test_CompareReleaseLines_WithIdentitiesOfDifferentDepth_OrdersByNumbers(t *testing.T) {+ cases := []struct {+ left, right string+ isLeftNewer bool+ }{+ {"26", "9", true},+ {"9", "8.4", true},+ {"8.4", "8.0", true},+ {"13.0", "12.0", true},+ {"12.0", "11.8", true},+ {"10.11", "10.6", true},+ {"5.7", "8.0", false},+ {"10.6", "10.11", false},+ }++ for _, c := range cases {+ order, err := compareReleaseLines(c.left, c.right)+ if err != nil {+ t.Fatalf("comparing %s and %s: %v", c.left, c.right, err)+ }++ if (order > 0) != c.isLeftNewer {+ t.Errorf("comparing %s and %s: got order %d, expected isLeftNewer=%v",+ c.left, c.right, order, c.isLeftNewer)+ }+ }+}++func Test_CompareReleaseLines_WithEqualIdentities_ReportsNoDifference(t *testing.T) {+ order, err := compareReleaseLines("13.0", "13.0")+ if err != nil {+ t.Fatalf("unexpected error: %v", err)+ }++ if order != 0 {+ t.Errorf("got order %d, expected 0", order)+ }+}++func Test_CompareReleaseLines_WithAnUnparseableIdentity_ReturnsError(t *testing.T) {+ if _, err := compareReleaseLines("13.0", "next"); err == nil {+ t.Error("expected an error for an identity that is not a dotted number")+ }++ if _, err := compareReleaseLines("", "13.0"); err == nil {+ t.Error("expected an error for an empty identity")+ }+}++func Test_IsVersionOnReleaseLine_WithAVersionInsideTheLine_ReportsTrue(t *testing.T) {+ cases := []struct {+ reported, line string+ isOnLine bool+ }{+ {"26.7.0", "26", true},+ {"26.10.1", "26", true},+ {"13.0.2", "13.0", true},+ {"13.2.0", "13.0", false},+ {"10.6.28", "10.6", true},+ {"10.11.14", "10.6", false},+ {"12.3.3", "12.3", true},+ {"9.7.2", "9", true},+ {"5.7.44", "5.7", true},+ {"17.10", "17", true},+ {"10.6", "10.6.28", false},+ {"not-a-version", "10.6", false},+ }++ for _, c := range cases {+ if got := isVersionOnReleaseLine(c.reported, c.line); got != c.isOnLine {+ t.Errorf("version %s on line %s: got %v, expected %v",+ c.reported, c.line, got, c.isOnLine)+ }+ }+}diff --git a/frontend/src/entity/databases/model/mariadb/MariadbVersion.ts b/frontend/src/entity/databases/model/mariadb/MariadbVersion.tsindex 9ed5ae49..e91aff6f 100644--- a/frontend/src/entity/databases/model/mariadb/MariadbVersion.ts+++ b/frontend/src/entity/databases/model/mariadb/MariadbVersion.ts@@ -10,4 +10,5 @@ export enum MariadbVersion {MariadbVersion114 = '11.4',MariadbVersion118 = '11.8',MariadbVersion120 = '12.0',+ MariadbVersion130 = '13.0',}diff --git a/frontend/src/entity/databases/model/mysql/MysqlVersion.ts b/frontend/src/entity/databases/model/mysql/MysqlVersion.tsindex 479ba511..7915247a 100644--- a/frontend/src/entity/databases/model/mysql/MysqlVersion.ts+++ b/frontend/src/entity/databases/model/mysql/MysqlVersion.ts@@ -3,4 +3,5 @@ export enum MysqlVersion {MysqlVersion80 = '8.0',MysqlVersion84 = '8.4',MysqlVersion9 = '9',+ MysqlVersion26 = '26',}diff --git a/frontend/src/features/databases/ui/show/ShowMariaDbSpecificDataComponent.tsx b/frontend/src/features/databases/ui/show/ShowMariaDbSpecificDataComponent.tsxindex 62001960..951ddb01 100644--- a/frontend/src/features/databases/ui/show/ShowMariaDbSpecificDataComponent.tsx+++ b/frontend/src/features/databases/ui/show/ShowMariaDbSpecificDataComponent.tsx@@ -4,7 +4,6 @@ import {DATABASE_TYPE_LABEL_KEYS,type Database,DatabaseType,- MariadbVersion,} from '../../../../entity/databases';import { ShowSshTunnelComponent } from './ShowSshTunnelComponent';@@ -12,20 +11,6 @@ interface Props {database: Database;}-const mariadbVersionLabels: Record<MariadbVersion, string> = {- [MariadbVersion.MariadbVersion55]: '5.5',- [MariadbVersion.MariadbVersion101]: '10.1',- [MariadbVersion.MariadbVersion102]: '10.2',- [MariadbVersion.MariadbVersion103]: '10.3',- [MariadbVersion.MariadbVersion104]: '10.4',- [MariadbVersion.MariadbVersion105]: '10.5',- [MariadbVersion.MariadbVersion106]: '10.6',- [MariadbVersion.MariadbVersion1011]: '10.11',- [MariadbVersion.MariadbVersion114]: '11.4',- [MariadbVersion.MariadbVersion118]: '11.8',- [MariadbVersion.MariadbVersion120]: '12.0',-};-export const ShowMariaDbSpecificDataComponent = ({ database }: Props) => {const { t } = useTranslation();@@ -37,7 +22,7 @@ export const ShowMariaDbSpecificDataComponent = ({ database }: Props) => {engine: t(DATABASE_TYPE_LABEL_KEYS[DatabaseType.MARIADB]),})}</div>- <div>{database.mariadb?.version ? mariadbVersionLabels[database.mariadb.version] : ''}</div>+ <div>{database.mariadb?.version || ''}</div></div><div className="mb-1 flex w-full items-center">diff --git a/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx b/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsxindex 71b51c43..fd0f32b7 100644--- a/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx+++ b/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx@@ -4,7 +4,6 @@ import {DATABASE_TYPE_LABEL_KEYS,type Database,DatabaseType,- MysqlVersion,} from '../../../../entity/databases';import { ShowSshTunnelComponent } from './ShowSshTunnelComponent';@@ -12,13 +11,6 @@ interface Props {database: Database;}-const mysqlVersionLabels = {- [MysqlVersion.MysqlVersion57]: '5.7',- [MysqlVersion.MysqlVersion80]: '8.0',- [MysqlVersion.MysqlVersion84]: '8.4',- [MysqlVersion.MysqlVersion9]: '9',-};-export const ShowMySqlSpecificDataComponent = ({ database }: Props) => {const { t } = useTranslation();@@ -30,7 +22,7 @@ export const ShowMySqlSpecificDataComponent = ({ database }: Props) => {engine: t(DATABASE_TYPE_LABEL_KEYS[DatabaseType.MYSQL]),})}</div>- <div>{database.mysql?.version ? mysqlVersionLabels[database.mysql.version] : ''}</div>+ <div>{database.mysql?.version || ''}</div></div><div className="mb-1 flex w-full items-center">diff --git a/tools/refresh-mariadb-bundle.sh b/tools/refresh-mariadb-bundle.shnew file mode 100755index 00000000..f42bba5d--- /dev/null+++ b/tools/refresh-mariadb-bundle.sh@@ -0,0 +1,90 @@+#!/usr/bin/env bash+# Rebuild one MariaDB client bundle under assets/tools/ from the vendor's+# official package repository.+#+# tools/refresh-mariadb-bundle.sh <bundle> <arch>+# <bundle> 10.6 | 12.3 | 13.0+# <arch> amd64 | arm64+#+# The package version is pinned per bundle below rather than resolved as "the+# newest patch of this line", so two architectures refreshed a week apart get+# the same build. Bundles differ in three dimensions — repository, suite and+# package naming — which is why the table exists instead of one URL template.+#+# Packages are unpacked, never installed: no emulation is needed to build the+# arm64 tree on an amd64 host, and the result does not depend on what the+# build host already has installed.+set -euo pipefail++BUNDLE="${1:-}"+ARCH="${2:-}"++case "$BUNDLE" in+ 10.6)+ # MariaDB 10.6 predates the mariadb-* binary names, so the real programs are+ # still mysql and mysqldump; the package splits the client per release line.+ REPO="10.6/ubuntu"; POOL="mariadb-10.6"; PKG_VERSION="10.6.28+maria~ubu2204"+ PACKAGES=("mariadb-client-10.6" "mariadb-client-core-10.6")+ SRC_CLIENT="usr/bin/mysql"; SRC_DUMP="usr/bin/mysqldump"+ ;;+ 12.3)+ REPO="12.3/debian"; POOL="mariadb"; PKG_VERSION="12.3.3+maria~deb12"+ PACKAGES=("mariadb-client" "mariadb-client-core")+ SRC_CLIENT="usr/bin/mariadb"; SRC_DUMP="usr/bin/mariadb-dump"+ ;;+ 13.0)+ REPO="13.0/ubuntu"; POOL="mariadb"; PKG_VERSION="13.0.2+maria~ubu2204"+ PACKAGES=("mariadb-client" "mariadb-client-core")+ SRC_CLIENT="usr/bin/mariadb"; SRC_DUMP="usr/bin/mariadb-dump"+ ;;+ *)+ echo "usage: $0 <10.6|12.3|13.0> <amd64|arm64>" >&2+ exit 2+ ;;+esac++case "$ARCH" in+ amd64) ARCH_KEY="x64" ;;+ arm64) ARCH_KEY="arm" ;;+ *) echo "usage: $0 <10.6|12.3|13.0> <amd64|arm64>" >&2; exit 2 ;;+esac++REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"+DEST="$REPO_ROOT/assets/tools/$ARCH_KEY/mariadb/mariadb-$BUNDLE/bin"+WORK="$(mktemp -d)"+trap 'rm -rf "$WORK"' EXIT++# dpkg-deb is the documented way to unpack a .deb; ar plus tar is the same+# archive read by hand, for hosts that do not ship dpkg.+extract_deb() {+ local deb="$1" root="$2"+ if command -v dpkg-deb >/dev/null; then+ dpkg-deb -x "$deb" "$root"+ return+ fi+ local member+ member="$(ar t "$deb" | grep '^data\.tar')"+ case "$member" in+ *.zst) ar p "$deb" "$member" | zstd -dc | tar -x -C "$root" ;;+ *.xz) ar p "$deb" "$member" | xz -dc | tar -x -C "$root" ;;+ *.gz) ar p "$deb" "$member" | gzip -dc | tar -x -C "$root" ;;+ *) echo "unhandled data member: $member" >&2; return 1 ;;+ esac+}++mkdir -p "$WORK/root"+for package in "${PACKAGES[@]}"; do+ url="https://mirror.mariadb.org/repo/$REPO/pool/main/m/$POOL/${package}_${PKG_VERSION}_${ARCH}.deb"+ echo "==> $url"+ curl -fsSL -o "$WORK/$package.deb" "$url"+ sha256sum "$WORK/$package.deb"+ extract_deb "$WORK/$package.deb" "$WORK/root"+done++mkdir -p "$DEST"+install -m 0755 "$WORK/root/$SRC_CLIENT" "$DEST/mariadb"+install -m 0755 "$WORK/root/$SRC_DUMP" "$DEST/mariadb-dump"++echo+echo "Installed into $DEST"+sha256sum "$DEST/mariadb" "$DEST/mariadb-dump"diff --git a/tools/refresh-mariadb-x64-libedit.sh b/tools/refresh-mariadb-x64-libedit.shdeleted file mode 100755index 2bf6e5ee..00000000--- a/tools/refresh-mariadb-x64-libedit.sh+++ /dev/null@@ -1,36 +0,0 @@-#!/usr/bin/env bash-# Rebuild assets/tools/x64/mariadb/mariadb-12.1/bin/ using the libedit-linked-# client from MariaDB's official APT repo. Mirrors how the arm tree is built.-#-# Run from the databasus repo root. Requires Docker with linux/amd64 support-# (works natively on amd64 hosts, or via qemu on arm hosts).-set -euo pipefail--REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"-DEST="$REPO_ROOT/assets/tools/x64/mariadb/mariadb-12.1/bin"-WORK="$(mktemp -d)"-trap 'rm -rf "$WORK"' EXIT--docker run --rm --platform linux/amd64 -v "$WORK:/out" debian:bookworm-slim bash -eu <<'INNER'-export DEBIAN_FRONTEND=noninteractive-apt-get update -qq-apt-get install -y --no-install-recommends \- ca-certificates curl gnupg lsb-release apt-transport-https >/dev/null-curl -fsSL https://r.mariadb.com/downloads/mariadb_repo_setup \- | bash -s -- --mariadb-server-version=12.1 >/dev/null 2>&1-apt-get update -qq-apt-get install -y --no-install-recommends mariadb-client >/dev/null-cp /usr/bin/mariadb /out/mariadb-cp /usr/bin/mariadb-dump /out/mariadb-dump-chmod +x /out/mariadb /out/mariadb-dump-/out/mariadb --version-/out/mariadb-dump --version-INNER--install -m 0755 "$WORK/mariadb" "$DEST/mariadb"-install -m 0755 "$WORK/mariadb-dump" "$DEST/mariadb-dump"--echo-echo "Installed into $DEST"-sha256sum "$DEST/mariadb" "$DEST/mariadb-dump"-"$DEST/mariadb" --versiondiff --git a/website/app/(en)/mysql-backup/page.tsx b/website/app/(en)/mysql-backup/page.tsxindex 1da1f481..ec415b62 100644--- a/website/app/(en)/mysql-backup/page.tsx+++ b/website/app/(en)/mysql-backup/page.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"MySQL database health monitoring","Self-hosted via Docker","Open source and free",- "Support for MySQL 5.7, 8.0, 8.4, 9",- "Support for MariaDB 10, 11, 12",+ "Support for MySQL 5.7, 8.0, 8.4, 9, 26",+ "Support for MariaDB 5.5, 10, 11, 12, 13","Backup compression and AES-256-GCM encryption","mysqldump alternative with web UI",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "Which MySQL versions does Databasus support?",acceptedAnswer: {"@type": "Answer",- text: "Databasus supports MySQL 5.7, 8.0, 8.4 and 9. For MySQL 8.0 and newer, Databasus uses zstd network compression for faster transfers. For MySQL 5.7, legacy compression is used automatically.",+ text: "Databasus supports MySQL 5.7, 8.0, 8.4, 9 and 26. For MySQL 8.0 and newer, Databasus uses zstd network compression for faster transfers. For MySQL 5.7, legacy compression is used automatically. MySQL 5.7 is supported on x86-64 only.",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "Which MariaDB versions does Databasus support?",acceptedAnswer: {"@type": "Answer",- text: "Databasus supports MariaDB 10, 11 and 12. For MariaDB backups, Databasus uses the native mariadb-dump tool instead of mysqldump, ensuring full compatibility with MariaDB-specific features and optimizations.",+ text: "Databasus supports MariaDB 5.5, 10, 11, 12 and 13. For MariaDB backups, Databasus uses the native mariadb-dump tool instead of mysqldump, ensuring full compatibility with MariaDB-specific features and optimizations.",},},{@@ -558,8 +558,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- MySQL 5.7, 8.0, 8.4 and 9 are supported. MariaDB 10, 11 and 12- are supported with native mariadb-dump tool for full+ MySQL 5.7, 8.0, 8.4, 9 and 26 are supported. MariaDB 5.5, 10, 11, 12+ and 13 are supported with native mariadb-dump tool for fullcompatibility</p>@@ -817,6 +817,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -888,6 +891,9 @@ export default function MysqlBackupPage() {Supported MariaDB versions:</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -897,6 +903,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -982,12 +991,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="Which MySQL versions does Databasus support?"- answer="Databasus supports MySQL 5.7, 8.0, 8.4 and 9. For MySQL 8.0 and newer, Databasus uses zstd network compression for faster transfers over slow connections. For MySQL 5.7, legacy compression is used automatically. All versions get the same features: scheduling, encryption, cloud storage and notifications."+ answer="Databasus supports MySQL 5.7, 8.0, 8.4, 9 and 26. For MySQL 8.0 and newer, Databasus uses zstd network compression for faster transfers over slow connections. For MySQL 5.7, legacy compression is used automatically. MySQL 5.7 is supported on x86-64 only. All versions get the same features: scheduling, encryption, cloud storage and notifications."/><FaqItemnumber="4"question="Which MariaDB versions does Databasus support?"- answer="Databasus supports MariaDB 10, 11 and 12. For MariaDB backups, Databasus uses the native mariadb-dump tool instead of mysqldump, ensuring full compatibility with MariaDB-specific features and optimizations. The same web UI, scheduling, storage and notification features work for both MySQL and MariaDB."+ answer="Databasus supports MariaDB 5.5, 10, 11, 12 and 13. For MariaDB backups, Databasus uses the native mariadb-dump tool instead of mysqldump, ensuring full compatibility with MariaDB-specific features and optimizations. The same web UI, scheduling, storage and notification features work for both MySQL and MariaDB."/><FaqItemnumber="5"diff --git a/website/app/[lang]/mysql-backup/content/es.tsx b/website/app/[lang]/mysql-backup/content/es.tsxindex 72218ad3..4db61861 100644--- a/website/app/[lang]/mysql-backup/content/es.tsx+++ b/website/app/[lang]/mysql-backup/content/es.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"Monitorización del estado de la base de datos MySQL","Autoalojado mediante Docker","De código abierto y gratuito",- "Soporte para MySQL 5.7, 8.0, 8.4, 9",- "Soporte para MariaDB 10, 11, 12",+ "Soporte para MySQL 5.7, 8.0, 8.4, 9, 26",+ "Soporte para MariaDB 5.5, 10, 11, 12, 13","Compresión de copias de seguridad y cifrado AES-256-GCM","Alternativa a mysqldump con interfaz web",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "¿Qué versiones de MySQL soporta Databasus?",acceptedAnswer: {"@type": "Answer",- text: "Databasus soporta MySQL 5.7, 8.0, 8.4 y 9. Para MySQL 8.0 y versiones posteriores, Databasus usa compresión de red zstd para transferencias más rápidas. Para MySQL 5.7 se usa automáticamente la compresión heredada.",+ text: "Databasus soporta MySQL 5.7, 8.0, 8.4, 9 y 26. Para MySQL 8.0 y versiones posteriores, Databasus usa compresión de red zstd para transferencias más rápidas. Para MySQL 5.7 se usa automáticamente la compresión heredada. MySQL 5.7 solo se soporta en x86-64.",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "¿Qué versiones de MariaDB soporta Databasus?",acceptedAnswer: {"@type": "Answer",- text: "Databasus soporta MariaDB 10, 11 y 12. Para los respaldos de MariaDB, Databasus usa la herramienta nativa mariadb-dump en lugar de mysqldump, lo que garantiza compatibilidad total con las funciones y optimizaciones específicas de MariaDB.",+ text: "Databasus soporta MariaDB 5.5, 10, 11, 12 y 13. Para los respaldos de MariaDB, Databasus usa la herramienta nativa mariadb-dump en lugar de mysqldump, lo que garantiza compatibilidad total con las funciones y optimizaciones específicas de MariaDB.",},},{@@ -564,8 +564,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- Se soportan MySQL 5.7, 8.0, 8.4 y 9. MariaDB 10, 11 y 12 se- soportan con la herramienta nativa mariadb-dump para una+ Se soportan MySQL 5.7, 8.0, 8.4, 9 y 26. MariaDB 5.5, 10, 11, 12 y 13+ se soportan con la herramienta nativa mariadb-dump para unacompatibilidad total</p>@@ -830,6 +830,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -903,6 +906,9 @@ export default function MysqlBackupPage() {Versiones de MariaDB soportadas:</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -912,6 +918,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -997,12 +1006,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="¿Qué versiones de MySQL soporta Databasus?"- answer="Databasus soporta MySQL 5.7, 8.0, 8.4 y 9. Para MySQL 8.0 y versiones posteriores, Databasus usa compresión de red zstd para transferencias más rápidas en conexiones lentas. Para MySQL 5.7 se usa automáticamente la compresión heredada. Todas las versiones cuentan con las mismas funciones: programación, cifrado, almacenamiento en la nube y notificaciones."+ answer="Databasus soporta MySQL 5.7, 8.0, 8.4, 9 y 26. Para MySQL 8.0 y versiones posteriores, Databasus usa compresión de red zstd para transferencias más rápidas en conexiones lentas. Para MySQL 5.7 se usa automáticamente la compresión heredada. MySQL 5.7 solo se soporta en x86-64. Todas las versiones cuentan con las mismas funciones: programación, cifrado, almacenamiento en la nube y notificaciones."/><FaqItemnumber="4"question="¿Qué versiones de MariaDB soporta Databasus?"- answer="Databasus soporta MariaDB 10, 11 y 12. Para los respaldos de MariaDB, Databasus usa la herramienta nativa mariadb-dump en lugar de mysqldump, lo que garantiza compatibilidad total con las funciones y optimizaciones específicas de MariaDB. La misma interfaz web y las mismas funciones de programación, almacenamiento y notificaciones sirven tanto para MySQL como para MariaDB."+ answer="Databasus soporta MariaDB 5.5, 10, 11, 12 y 13. Para los respaldos de MariaDB, Databasus usa la herramienta nativa mariadb-dump en lugar de mysqldump, lo que garantiza compatibilidad total con las funciones y optimizaciones específicas de MariaDB. La misma interfaz web y las mismas funciones de programación, almacenamiento y notificaciones sirven tanto para MySQL como para MariaDB."/><FaqItemnumber="5"diff --git a/website/app/[lang]/mysql-backup/content/fr.tsx b/website/app/[lang]/mysql-backup/content/fr.tsxindex 73e6f813..54152e49 100644--- a/website/app/[lang]/mysql-backup/content/fr.tsx+++ b/website/app/[lang]/mysql-backup/content/fr.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"Supervision de l'état des bases de données MySQL","Auto-hébergé via Docker","Open source et gratuit",- "Prise en charge de MySQL 5.7, 8.0, 8.4, 9",- "Prise en charge de MariaDB 10, 11, 12",+ "Prise en charge de MySQL 5.7, 8.0, 8.4, 9, 26",+ "Prise en charge de MariaDB 5.5, 10, 11, 12, 13","Compression des backups et chiffrement AES-256-GCM","Alternative à mysqldump avec interface web",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "Quelles versions de MySQL Databasus prend-il en charge ?",acceptedAnswer: {"@type": "Answer",- text: "Databasus prend en charge MySQL 5.7, 8.0, 8.4 et 9. Pour MySQL 8.0 et plus récent, Databasus utilise la compression réseau zstd pour des transferts plus rapides. Pour MySQL 5.7, la compression legacy est utilisée automatiquement.",+ text: "Databasus prend en charge MySQL 5.7, 8.0, 8.4, 9 et 26. Pour MySQL 8.0 et plus récent, Databasus utilise la compression réseau zstd pour des transferts plus rapides. Pour MySQL 5.7, la compression legacy est utilisée automatiquement. MySQL 5.7 est pris en charge uniquement sur x86-64.",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "Quelles versions de MariaDB Databasus prend-il en charge ?",acceptedAnswer: {"@type": "Answer",- text: "Databasus prend en charge MariaDB 10, 11 et 12. Pour les backups MariaDB, Databasus utilise l'outil natif mariadb-dump au lieu de mysqldump, ce qui garantit une compatibilité totale avec les fonctionnalités et optimisations propres à MariaDB.",+ text: "Databasus prend en charge MariaDB 5.5, 10, 11, 12 et 13. Pour les backups MariaDB, Databasus utilise l'outil natif mariadb-dump au lieu de mysqldump, ce qui garantit une compatibilité totale avec les fonctionnalités et optimisations propres à MariaDB.",},},{@@ -565,8 +565,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- MySQL 5.7, 8.0, 8.4 et 9 sont pris en charge. MariaDB 10, 11- et 12 sont pris en charge avec l'outil natif mariadb-dump+ MySQL 5.7, 8.0, 8.4, 9 et 26 sont pris en charge. MariaDB 5.5, 10, 11,+ 12 et 13 sont pris en charge avec l'outil natif mariadb-dumppour une compatibilité totale</p>@@ -829,6 +829,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -902,6 +905,9 @@ export default function MysqlBackupPage() {Versions MariaDB prises en charge :</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -911,6 +917,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -996,12 +1005,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="Quelles versions de MySQL Databasus prend-il en charge ?"- answer="Databasus prend en charge MySQL 5.7, 8.0, 8.4 et 9. Pour MySQL 8.0 et plus récent, Databasus utilise la compression réseau zstd pour des transferts plus rapides sur les connexions lentes. Pour MySQL 5.7, la compression legacy est utilisée automatiquement. Toutes les versions bénéficient des mêmes fonctionnalités : planification, chiffrement, stockage cloud et notifications."+ answer="Databasus prend en charge MySQL 5.7, 8.0, 8.4, 9 et 26. Pour MySQL 8.0 et plus récent, Databasus utilise la compression réseau zstd pour des transferts plus rapides sur les connexions lentes. Pour MySQL 5.7, la compression legacy est utilisée automatiquement. MySQL 5.7 est pris en charge uniquement sur x86-64. Toutes les versions bénéficient des mêmes fonctionnalités : planification, chiffrement, stockage cloud et notifications."/><FaqItemnumber="4"question="Quelles versions de MariaDB Databasus prend-il en charge ?"- answer="Databasus prend en charge MariaDB 10, 11 et 12. Pour les backups MariaDB, Databasus utilise l'outil natif mariadb-dump au lieu de mysqldump, ce qui garantit une compatibilité totale avec les fonctionnalités et optimisations propres à MariaDB. La même interface web, la planification, le stockage et les notifications fonctionnent pour MySQL comme pour MariaDB."+ answer="Databasus prend en charge MariaDB 5.5, 10, 11, 12 et 13. Pour les backups MariaDB, Databasus utilise l'outil natif mariadb-dump au lieu de mysqldump, ce qui garantit une compatibilité totale avec les fonctionnalités et optimisations propres à MariaDB. La même interface web, la planification, le stockage et les notifications fonctionnent pour MySQL comme pour MariaDB."/><FaqItemnumber="5"diff --git a/website/app/[lang]/mysql-backup/content/pt.tsx b/website/app/[lang]/mysql-backup/content/pt.tsxindex a63c7687..54cb012e 100644--- a/website/app/[lang]/mysql-backup/content/pt.tsx+++ b/website/app/[lang]/mysql-backup/content/pt.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"Monitoramento de saúde da base de dados MySQL","Auto-hospedado via Docker","Open source e gratuito",- "Suporte a MySQL 5.7, 8.0, 8.4, 9",- "Suporte a MariaDB 10, 11, 12",+ "Suporte a MySQL 5.7, 8.0, 8.4, 9, 26",+ "Suporte a MariaDB 5.5, 10, 11, 12, 13","Compressão de backups e criptografia AES-256-GCM","Alternativa ao mysqldump com interface web",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "Quais versões de MySQL o Databasus suporta?",acceptedAnswer: {"@type": "Answer",- text: "O Databasus suporta MySQL 5.7, 8.0, 8.4 e 9. Para MySQL 8.0 e mais recentes, o Databasus usa compressão de rede zstd para transferências mais rápidas. Para MySQL 5.7, a compressão legada é usada automaticamente.",+ text: "O Databasus suporta MySQL 5.7, 8.0, 8.4, 9 e 26. Para MySQL 8.0 e mais recentes, o Databasus usa compressão de rede zstd para transferências mais rápidas. Para MySQL 5.7, a compressão legada é usada automaticamente. MySQL 5.7 é suportado apenas em x86-64.",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "Quais versões de MariaDB o Databasus suporta?",acceptedAnswer: {"@type": "Answer",- text: "O Databasus suporta MariaDB 10, 11 e 12. Para backups de MariaDB, o Databasus usa a ferramenta nativa mariadb-dump em vez do mysqldump, garantindo compatibilidade total com recursos e otimizações específicos do MariaDB.",+ text: "O Databasus suporta MariaDB 5.5, 10, 11, 12 e 13. Para backups de MariaDB, o Databasus usa a ferramenta nativa mariadb-dump em vez do mysqldump, garantindo compatibilidade total com recursos e otimizações específicos do MariaDB.",},},{@@ -563,8 +563,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- MySQL 5.7, 8.0, 8.4 e 9 são suportados. MariaDB 10, 11 e 12- são suportados com a ferramenta nativa mariadb-dump para+ MySQL 5.7, 8.0, 8.4, 9 e 26 são suportados. MariaDB 5.5, 10, 11, 12 e+ 13 são suportados com a ferramenta nativa mariadb-dump paracompatibilidade total</p>@@ -826,6 +826,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -899,6 +902,9 @@ export default function MysqlBackupPage() {Versões de MariaDB suportadas:</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -908,6 +914,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -993,12 +1002,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="Quais versões de MySQL o Databasus suporta?"- answer="O Databasus suporta MySQL 5.7, 8.0, 8.4 e 9. Para MySQL 8.0 e mais recentes, o Databasus usa compressão de rede zstd para transferências mais rápidas em conexões lentas. Para MySQL 5.7, a compressão legada é usada automaticamente. Todas as versões têm os mesmos recursos: agendamento, criptografia, armazenamento em nuvem e notificações."+ answer="O Databasus suporta MySQL 5.7, 8.0, 8.4, 9 e 26. Para MySQL 8.0 e mais recentes, o Databasus usa compressão de rede zstd para transferências mais rápidas em conexões lentas. Para MySQL 5.7, a compressão legada é usada automaticamente. MySQL 5.7 é suportado apenas em x86-64. Todas as versões têm os mesmos recursos: agendamento, criptografia, armazenamento em nuvem e notificações."/><FaqItemnumber="4"question="Quais versões de MariaDB o Databasus suporta?"- answer="O Databasus suporta MariaDB 10, 11 e 12. Para backups de MariaDB, o Databasus usa a ferramenta nativa mariadb-dump em vez do mysqldump, garantindo compatibilidade total com recursos e otimizações específicos do MariaDB. A mesma interface web e os mesmos recursos de agendamento, armazenamento e notificações funcionam tanto para MySQL como para MariaDB."+ answer="O Databasus suporta MariaDB 5.5, 10, 11, 12 e 13. Para backups de MariaDB, o Databasus usa a ferramenta nativa mariadb-dump em vez do mysqldump, garantindo compatibilidade total com recursos e otimizações específicos do MariaDB. A mesma interface web e os mesmos recursos de agendamento, armazenamento e notificações funcionam tanto para MySQL como para MariaDB."/><FaqItemnumber="5"diff --git a/website/app/[lang]/mysql-backup/content/ru.tsx b/website/app/[lang]/mysql-backup/content/ru.tsxindex 8098c930..b4ee6619 100644--- a/website/app/[lang]/mysql-backup/content/ru.tsx+++ b/website/app/[lang]/mysql-backup/content/ru.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"Мониторинг доступности базы данных MySQL","Self-hosted установка через Docker","Открытый исходный код, бесплатно",- "Поддержка MySQL 5.7, 8.0, 8.4, 9",- "Поддержка MariaDB 10, 11, 12",+ "Поддержка MySQL 5.7, 8.0, 8.4, 9, 26",+ "Поддержка MariaDB 5.5, 10, 11, 12, 13","Сжатие бекапов и шифрование AES-256-GCM","Альтернатива mysqldump с веб-интерфейсом",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "Какие версии MySQL поддерживает Databasus?",acceptedAnswer: {"@type": "Answer",- text: "Databasus поддерживает MySQL 5.7, 8.0, 8.4 и 9. Для MySQL 8.0 и новее Databasus использует сетевое сжатие zstd для более быстрой передачи. Для MySQL 5.7 автоматически используется классическое сжатие.",+ text: "Databasus поддерживает MySQL 5.7, 8.0, 8.4, 9 и 26. Для MySQL 8.0 и новее Databasus использует сетевое сжатие zstd для более быстрой передачи. Для MySQL 5.7 автоматически используется классическое сжатие. MySQL 5.7 поддерживается только на x86-64.",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "Какие версии MariaDB поддерживает Databasus?",acceptedAnswer: {"@type": "Answer",- text: "Databasus поддерживает MariaDB 10, 11 и 12. Для бекапов MariaDB Databasus использует родной инструмент mariadb-dump вместо mysqldump — это дает полную совместимость с особенностями и оптимизациями MariaDB.",+ text: "Databasus поддерживает MariaDB 5.5, 10, 11, 12 и 13. Для бекапов MariaDB Databasus использует родной инструмент mariadb-dump вместо mysqldump — это дает полную совместимость с особенностями и оптимизациями MariaDB.",},},{@@ -561,8 +561,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- Поддерживаются MySQL 5.7, 8.0, 8.4 и 9, а также MariaDB 10, 11- и 12 — последние через родной mariadb-dump для полной+ Поддерживаются MySQL 5.7, 8.0, 8.4, 9 и 26, а также MariaDB 5.5, 10,+ 11, 12 и 13 — последние через родной mariadb-dump для полнойсовместимости</p>@@ -822,6 +822,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -893,6 +896,9 @@ export default function MysqlBackupPage() {Поддерживаемые версии MariaDB:</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -902,6 +908,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -987,12 +996,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="Какие версии MySQL поддерживает Databasus?"- answer="Databasus поддерживает MySQL 5.7, 8.0, 8.4 и 9. Для MySQL 8.0 и новее Databasus использует сетевое сжатие zstd, ускоряющее передачу по медленным каналам. Для MySQL 5.7 автоматически используется классическое сжатие. Все версии получают одинаковый набор функций: расписания, шифрование, облачные хранилища и уведомления."+ answer="Databasus поддерживает MySQL 5.7, 8.0, 8.4, 9 и 26. Для MySQL 8.0 и новее Databasus использует сетевое сжатие zstd, ускоряющее передачу по медленным каналам. Для MySQL 5.7 автоматически используется классическое сжатие. MySQL 5.7 поддерживается только на x86-64. Все версии получают одинаковый набор функций: расписания, шифрование, облачные хранилища и уведомления."/><FaqItemnumber="4"question="Какие версии MariaDB поддерживает Databasus?"- answer="Databasus поддерживает MariaDB 10, 11 и 12. Для бекапов MariaDB Databasus использует родной инструмент mariadb-dump вместо mysqldump — это дает полную совместимость с особенностями и оптимизациями MariaDB. Один и тот же веб-интерфейс, расписания, хранилища и уведомления работают и для MySQL, и для MariaDB."+ answer="Databasus поддерживает MariaDB 5.5, 10, 11, 12 и 13. Для бекапов MariaDB Databasus использует родной инструмент mariadb-dump вместо mysqldump — это дает полную совместимость с особенностями и оптимизациями MariaDB. Один и тот же веб-интерфейс, расписания, хранилища и уведомления работают и для MySQL, и для MariaDB."/><FaqItemnumber="5"diff --git a/website/app/[lang]/mysql-backup/content/zh.tsx b/website/app/[lang]/mysql-backup/content/zh.tsxindex 6fb5c7dd..da89b576 100644--- a/website/app/[lang]/mysql-backup/content/zh.tsx+++ b/website/app/[lang]/mysql-backup/content/zh.tsx@@ -84,8 +84,8 @@ export default function MysqlBackupPage() {"MySQL 数据库健康监控","通过 Docker 自托管","开源且免费",- "支持 MySQL 5.7、8.0、8.4、9",- "支持 MariaDB 10、11、12",+ "支持 MySQL 5.7、8.0、8.4、9、26",+ "支持 MariaDB 5.5、10、11、12、13","备份压缩和 AES-256-GCM 加密","带 Web 界面的 mysqldump 替代方案",],@@ -122,7 +122,7 @@ export default function MysqlBackupPage() {name: "Databasus 支持哪些 MySQL 版本?",acceptedAnswer: {"@type": "Answer",- text: "Databasus 支持 MySQL 5.7、8.0、8.4 和 9。对于 MySQL 8.0 及更新版本,Databasus 使用 zstd 网络压缩加快传输速度。对于 MySQL 5.7,会自动使用传统压缩方式。",+ text: "Databasus 支持 MySQL 5.7、8.0、8.4、9 和 26。对于 MySQL 8.0 及更新版本,Databasus 使用 zstd 网络压缩加快传输速度。对于 MySQL 5.7,会自动使用传统压缩方式。MySQL 5.7 仅支持 x86-64。",},},{@@ -130,7 +130,7 @@ export default function MysqlBackupPage() {name: "Databasus 支持哪些 MariaDB 版本?",acceptedAnswer: {"@type": "Answer",- text: "Databasus 支持 MariaDB 10、11 和 12。对于 MariaDB 备份,Databasus 使用原生的 mariadb-dump 工具而非 mysqldump,确保与 MariaDB 特有功能和优化完全兼容。",+ text: "Databasus 支持 MariaDB 5.5、10、11、12 和 13。对于 MariaDB 备份,Databasus 使用原生的 mariadb-dump 工具而非 mysqldump,确保与 MariaDB 特有功能和优化完全兼容。",},},{@@ -554,8 +554,8 @@ export default function MysqlBackupPage() {</h3><p className="text-gray-400 text-sm md:text-base mb-4">- 支持 MySQL 5.7、8.0、8.4 和 9。支持 MariaDB 10、11 和- 12,并使用原生 mariadb-dump 工具确保完全兼容+ 支持 MySQL 5.7、8.0、8.4、9 和 26。支持 MariaDB 5.5、10、11、12+ 和 13,并使用原生 mariadb-dump 工具确保完全兼容</p><div>@@ -806,6 +806,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MySQL 9</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MySQL 26+ </span></div></div></div>@@ -875,6 +878,9 @@ export default function MysqlBackupPage() {支持的 MariaDB 版本:</p><div className="flex flex-wrap gap-2">+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 5.5+ </span><span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 10</span>@@ -884,6 +890,9 @@ export default function MysqlBackupPage() {<span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">MariaDB 12</span>+ <span className="px-3 py-1 rounded border border-[#ffffff20] text-sm">+ MariaDB 13+ </span></div></div></div>@@ -966,12 +975,12 @@ export default function MysqlBackupPage() {<FaqItemnumber="3"question="Databasus 支持哪些 MySQL 版本?"- answer="Databasus 支持 MySQL 5.7、8.0、8.4 和 9。对于 MySQL 8.0 及更新版本,Databasus 使用 zstd 网络压缩,在低速连接下加快传输。对于 MySQL 5.7,会自动使用传统压缩方式。所有版本享有相同的功能:定时调度、加密、云存储和通知。"+ answer="Databasus 支持 MySQL 5.7、8.0、8.4、9 和 26。对于 MySQL 8.0 及更新版本,Databasus 使用 zstd 网络压缩,在低速连接下加快传输。对于 MySQL 5.7,会自动使用传统压缩方式。MySQL 5.7 仅支持 x86-64。所有版本享有相同的功能:定时调度、加密、云存储和通知。"/><FaqItemnumber="4"question="Databasus 支持哪些 MariaDB 版本?"- answer="Databasus 支持 MariaDB 10、11 和 12。对于 MariaDB 备份,Databasus 使用原生的 mariadb-dump 工具而非 mysqldump,确保与 MariaDB 特有功能和优化完全兼容。MySQL 和 MariaDB 共用同一套 Web 界面、定时调度、存储和通知功能。"+ answer="Databasus 支持 MariaDB 5.5、10、11、12 和 13。对于 MariaDB 备份,Databasus 使用原生的 mariadb-dump 工具而非 mysqldump,确保与 MariaDB 特有功能和优化完全兼容。MySQL 和 MariaDB 共用同一套 Web 界面、定时调度、存储和通知功能。"/><FaqItemnumber="5"