From d5e82169c59139915d61a048bd69ea109e301a0c Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Mon, 6 Jan 2025 14:42:48 +0100 Subject: [PATCH 1/2] update docker compose for mysql8.4 --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e7ed105d65e..65491bd4404 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -108,11 +108,11 @@ services: condition: service_completed_successfully wca_db: - image: mysql:8.0 + image: mysql:8.4 container_name: "database" environment: MYSQL_ALLOW_EMPTY_PASSWORD: "true" - command: --authentication-policy=mysql_native_password + command: --mysql-native-password=ON --authentication-policy=mysql_native_password ports: - "3306:3306" volumes: From 2cf7aed06e46080f1a8d9cab9a85282ad696d980 Mon Sep 17 00:00:00 2001 From: FinnIckler Date: Thu, 9 Jan 2025 12:07:28 +0100 Subject: [PATCH 2/2] remove deprecated command --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 65491bd4404..4fa5ad2cab6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -108,11 +108,13 @@ services: condition: service_completed_successfully wca_db: + # You will have to run docker exec -it database mysql to connect to the database and then + # ALTER USER 'root'@'%' IDENTIFIED WITH caching_sha2_password BY ''; + # To upgrade your DB from mysql8.0 to mysql8.4 image: mysql:8.4 container_name: "database" environment: MYSQL_ALLOW_EMPTY_PASSWORD: "true" - command: --mysql-native-password=ON --authentication-policy=mysql_native_password ports: - "3306:3306" volumes: