docker-compose-lamp icon indicating copy to clipboard operation
docker-compose-lamp copied to clipboard

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

Open kjarrio opened this issue 9 months ago • 2 comments

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

  • MySQL crashes with the default-authentication-plugin=mysql_native_password configuration enabled by default in the Dockerfile for mysql8

Which Branch / PHP Version are you using ?

  • php83

Steps to reproduce

  • Use mysql8 as database

Expected behavior

  • MySQL is supposed to start and run.

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):

  • OS: Windows
  • Docker Version: 26.0.0

Additional context

  • Related to issue #273
  • But I was unable to reproduce the issue described there with or without my Pull Request, and I tried every version of mariadb included.
  • I suspect that the issue there is that version of mariadb was changed without cleaning the data folder.

kjarrio avatar May 12 '24 17:05 kjarrio

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.

vandrieu avatar May 13 '24 13:05 vandrieu

it works for me.

hope this can be merged soon!

MHostinato avatar May 14 '24 08:05 MHostinato