Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Ghy-3466/relax the mysql minimum version constraint (#73331)

Ben Grabowe35245334413
diff --git a/.github/workflows/app-db.yml b/.github/workflows/app-db.yml
index 0db1da45460..679f93970b1 100644
--- a/.github/workflows/app-db.yml
+++ b/.github/workflows/app-db.yml
@@ -133,9 +133,9 @@ jobs:
fail-fast: false
matrix:
version:
- - name: MySQL 8.4
- junit-name: be-tests-mysql-8-4-ee
- image: mysql:8.4
+ - name: MySQL 8.0
+ junit-name: be-tests-mysql-8-0-ee
+ image: mysql:8.0
env:
enable-ssl-tests: 'false'
enable-aws-iam-tests: 'false'
diff --git a/.github/workflows/cross-branch-migrations.yml b/.github/workflows/cross-branch-migrations.yml
index 36795a437d0..6c21fb35113 100644
--- a/.github/workflows/cross-branch-migrations.yml
+++ b/.github/workflows/cross-branch-migrations.yml
@@ -90,7 +90,7 @@ jobs:
base-ref: ${{ env.BASE_REF }}
head-ref: ${{ env.HEAD_REF }}
- migrations-mysql-8-4-ee:
+ migrations-mysql-8-0-ee:
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
timeout-minutes: 10
env:
@@ -102,7 +102,7 @@ jobs:
MB_DB_USER: root
services:
mysql:
- image: mysql:8.4
+ image: mysql:8.0
ports:
- "3306:3306"
env:
diff --git a/.github/workflows/drivers-stress-test.yml b/.github/workflows/drivers-stress-test.yml
index 46d88e8d050..2f34cede836 100644
--- a/.github/workflows/drivers-stress-test.yml
+++ b/.github/workflows/drivers-stress-test.yml
@@ -304,7 +304,7 @@ jobs:
junit-name: 'be-tests-mongo-latest-ee'
test-args: ":only ${{ inputs.test }} :times ${{ inputs.times }}"
- be-tests-mysql-8-4-ee:
+ be-tests-mysql-8-0-ee:
if: inputs.driver == 'MySQL'
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
timeout-minutes: 90
@@ -319,7 +319,7 @@ jobs:
MB_MYSQL_TEST_USER: root
services:
mysql:
- image: mysql:8.4
+ image: mysql:8.0
ports:
- "3306:3306"
env:
@@ -327,10 +327,10 @@ jobs:
MYSQL_DATABASE: mb_test
steps:
- uses: actions/checkout@v4
- - name: Test MySQL driver (8.4)
+ - name: Test MySQL driver (8.0)
uses: ./.github/actions/test-driver
with:
- junit-name: 'be-tests-mysql-8-4-ee'
+ junit-name: 'be-tests-mysql-8-0-ee'
test-args: ":only ${{ inputs.test }} :times ${{ inputs.times }}"
be-tests-mysql-latest-ee:
diff --git a/.github/workflows/drivers.yml b/.github/workflows/drivers.yml
index e34c9a3b8eb..bacbbb35dc7 100644
--- a/.github/workflows/drivers.yml
+++ b/.github/workflows/drivers.yml
@@ -570,9 +570,9 @@ jobs:
env:
enable-ssl-tests: 'false'
enable-aws-iam-tests: 'false'
- - name: MySQL 8.4
- junit-name: be-tests-mysql-8-4-ee
- image: mysql:8.4
+ - name: MySQL 8.0
+ junit-name: be-tests-mysql-8-0-ee
+ image: mysql:8.0
env:
enable-ssl-tests: 'false'
enable-aws-iam-tests: 'false'
diff --git a/.github/workflows/semantic-search.yml b/.github/workflows/semantic-search.yml
index a69f30f59dd..2d67457ef24 100644
--- a/.github/workflows/semantic-search.yml
+++ b/.github/workflows/semantic-search.yml
@@ -147,9 +147,9 @@ jobs:
fail-fast: false
matrix:
version:
- - name: MySQL 8.4 with pgvector pg17
- junit-name: semantic-search-tests-mysql-8-4
- mysql-image: mysql:8.4
+ - name: MySQL 8.0 with pgvector pg17
+ junit-name: semantic-search-tests-mysql-8-0
+ mysql-image: mysql:8.0
pgvector-image: pgvector/pgvector:pg17
- name: MySQL Latest with pgvector pg17
junit-name: semantic-search-tests-mysql-latest
diff --git a/mage/src/mage/bgrabow/ci_test_repl.clj b/mage/src/mage/bgrabow/ci_test_repl.clj
index 10c7f58491f..5b44aa4d604 100644
--- a/mage/src/mage/bgrabow/ci_test_repl.clj
+++ b/mage/src/mage/bgrabow/ci_test_repl.clj
@@ -144,7 +144,7 @@
(defn- image->container-suffix
"Derive a container name suffix from a Docker image string.
e.g. 'circleci/mariadb:10.6' → 'mariadb-10-6'
- 'cimg/mysql:8.4' → 'mysql-8-4'
+ 'cimg/mysql:8.0' → 'mysql-8-0'
'pgvector/pgvector:pg17' → 'pgvector-pg17'"
[image]
(-> image
diff --git a/mage/src/mage/ci_port_map.edn b/mage/src/mage/ci_port_map.edn
index f3ea5213074..36672f432c2 100644
--- a/mage/src/mage/ci_port_map.edn
+++ b/mage/src/mage/ci_port_map.edn
@@ -19,8 +19,8 @@
"circleci/mariadb:latest" 3307
;; MySQL (3308–3309)
- "cimg/mysql:8.4" 3308
- "mysql:8.4" 3308
+ "cimg/mysql:8.0" 3308
+ "mysql:8.0" 3308
"mysql:latest" 3309
;; PostgreSQL (5432–5433)
diff --git a/resources/metabase/app_db/supported-db-versions.edn b/resources/metabase/app_db/supported-db-versions.edn
index 56135e45a45..866482a2c06 100644
--- a/resources/metabase/app_db/supported-db-versions.edn
+++ b/resources/metabase/app_db/supported-db-versions.edn
@@ -3,5 +3,5 @@
;; https://www.metabase.com/docs/latest/installation-and-operation/migrating-from-h2#supported-databases-for-storing-your-metabase-application-data
{:h2 {:major 2 :minor 1 :patch 214}
:postgres {:major 14 :minor 0 :patch 0}
- :mysql {:major 8 :minor 4 :patch 0}
+ :mysql {:major 8 :minor 0 :patch 0}
:mariadb {:major 10 :minor 6 :patch 0}}
diff --git a/test/metabase/app_db/setup_test.clj b/test/metabase/app_db/setup_test.clj
index ff88e02eaa0..2501a8c5122 100644
--- a/test/metabase/app_db/setup_test.clj
+++ b/test/metabase/app_db/setup_test.clj
@@ -37,7 +37,7 @@
(test-supported-versions :h2 {:major 2 :minor 1 :patch 214})
(test-supported-versions :postgres {:major 14 :minor 0 :patch 0})
- (test-supported-versions :mysql {:major 8 :minor 4 :patch 0})
+ (test-supported-versions :mysql {:major 8 :minor 0 :patch 0})
(test-supported-versions :mariadb {:major 10 :minor 6 :patch 0}))))
(deftest parse-db-version-test