Skip to content

Commit 6171a6b

Browse files
committed
fix: [#253] update MySQL 8.4 authentication parameter
MySQL 8.4 deprecated --default-authentication-plugin in favor of --mysql-native-password=ON. This change updates the docker-compose template to use the correct MySQL 8.4 syntax. The old parameter caused MySQL container initialization to fail with: 'unknown variable default-authentication-plugin=mysql_native_password' Verified working with MySQL 8.4.7 in manual E2E test.
1 parent fa175d8 commit 6171a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/docker-compose/docker-compose.yml.tera

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ services:
148148
- "3306:3306"
149149
volumes:
150150
- mysql_data:/var/lib/mysql
151-
command: --default-authentication-plugin=mysql_native_password
151+
command: --mysql-native-password=ON
152152
healthcheck:
153153
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"]
154154
interval: 10s

0 commit comments

Comments
 (0)