Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FEATURE (mysql): Add MySQL 9 to README, frontend version labels and test matrices (issue #719)

Rostislav Dugin6e9c7c95d3fc
diff --git a/README.md b/README.md
index 15fef6a3..abb488bf 100644
--- a/README.md
+++ b/README.md
@@ -102,10 +102,10 @@ 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 and 8 (logical only)
-- **MariaDB**: 10, 11 and 12 (logical only)
-- **MongoDB**: 4.2+, 5, 6, 7 and 8 (logical only)
--
+- **MySQL**: 5.7, 8.0, 8.4 and 9 (logical only)
+- **MariaDB**: 10, 11 and 12 (logical only)
+- **MongoDB**: 4.2+, 5, 6, 7 and 8 (logical only)
+
### 🐳 **Self-hosted & secure**
- **Docker-based**: Easy deployment and management
diff --git a/backend/internal/features/databases/databases/mysql/model_test.go b/backend/internal/features/databases/databases/mysql/model_test.go
index 5081a753..4c3101b9 100644
--- a/backend/internal/features/databases/databases/mysql/model_test.go
+++ b/backend/internal/features/databases/databases/mysql/model_test.go
@@ -26,6 +26,7 @@ var mysqlModelVersions = []mysqlModelVersion{
{"MySQL 5.7", tools.MysqlVersion57, "mysql:5.7"},
{"MySQL 8.0", tools.MysqlVersion80, "mysql:8.0"},
{"MySQL 8.4", tools.MysqlVersion84, "mysql:8.4"},
+ {"MySQL 9", tools.MysqlVersion9, "mysql:9"},
}
// Test_MysqlModel_AcrossSupportedVersions boots each MySQL version once and runs every matrix model
diff --git a/backend/internal/features/tests/logical/mysql/backup_restore_test.go b/backend/internal/features/tests/logical/mysql/backup_restore_test.go
index a92f29c7..21ef2e48 100644
--- a/backend/internal/features/tests/logical/mysql/backup_restore_test.go
+++ b/backend/internal/features/tests/logical/mysql/backup_restore_test.go
@@ -74,6 +74,7 @@ var mysqlVersions = []mysqlVersion{
{"MySQL 5.7", tools.MysqlVersion57, "mysql:5.7"},
{"MySQL 8.0", tools.MysqlVersion80, "mysql:8.0"},
{"MySQL 8.4", tools.MysqlVersion84, "mysql:8.4"},
+ {"MySQL 9", tools.MysqlVersion9, "mysql:9"},
}
// Test_MysqlBackupRestore_AcrossSupportedVersions boots each MySQL version once, runs every
diff --git a/frontend/src/entity/databases/model/mysql/MysqlVersion.ts b/frontend/src/entity/databases/model/mysql/MysqlVersion.ts
index 26d899ea..479ba511 100644
--- a/frontend/src/entity/databases/model/mysql/MysqlVersion.ts
+++ b/frontend/src/entity/databases/model/mysql/MysqlVersion.ts
@@ -2,4 +2,5 @@ export enum MysqlVersion {
MysqlVersion57 = '5.7',
MysqlVersion80 = '8.0',
MysqlVersion84 = '8.4',
+ MysqlVersion9 = '9',
}
diff --git a/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx b/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx
index 676d3216..bb2438e1 100644
--- a/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx
+++ b/frontend/src/features/databases/ui/show/ShowMySqlSpecificDataComponent.tsx
@@ -8,6 +8,7 @@ const mysqlVersionLabels = {
[MysqlVersion.MysqlVersion57]: '5.7',
[MysqlVersion.MysqlVersion80]: '8.0',
[MysqlVersion.MysqlVersion84]: '8.4',
+ [MysqlVersion.MysqlVersion9]: '9',
};
export const ShowMySqlSpecificDataComponent = ({ database }: Props) => {