sprintcube / docker-compose-lamp

A basic LAMP stack environment built using Docker Compose.
MIT License
2.54k stars 1.39k forks source link

Fix: mysql8 - Unknown variable "default-authentication-plugin" #278

Closed kjarrio closed 4 days ago

kjarrio commented 2 weeks ago

This is a fix for issue #277 - The description is below.

Proposed changes:

Change default-authentication-plugin=mysql_native_password to mysql_native_password=ON in the mysql8 Dockerfile.

Describe the bug

Which Branch / PHP Version are you using ?

Steps to reproduce

Expected behavior

Error message

bigbase-mysql8      | 2024-05-12T16:59:48.716026Z 0 [ERROR] [MY-000067] [Server] unknown variable 'default-authentication-plugin=mysql_native_password'.
test-mysql8      | 2024-05-12T16:59:48.717540Z 0 [ERROR] [MY-010119] [Server] Aborting
test-mysql8      | 2024-05-12T16:59:50.739542Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.4.0)  MySQL Community Server - GPL.
test-mysql8      | 2024-05-12T16:59:50.739616Z 0 [System] [MY-015016] [Server] MySQL Server - end.
test-mysql8 exited with code 0

This just repeats until I kill the container

Desktop (please complete the following information):

Additional context

vandrieu commented 2 weeks ago

I was about to commit the exact same PR since I ran into this issue and fixed it in the exact same way. I can confirm: since MySQL 8.4 was released, docker-compose-lamp fails to spin a MySQL 8 container because of this issue. And I can confirm: this fix works.

MHostinato commented 2 weeks ago

it works for me.

hope this can be merged soon!

MHostinato commented 4 days ago

Hey @MrOffline77 , can we get this merged? :)