Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

kjarrio
Copy link
Contributor

@kjarrio kjarrio commented May 12, 2024

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 MySQL crashing on startup #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.

Error message:
[Server] unknown variable 'default-authentication-plugin=mysql_native_password'.
@vandrieu
Copy link

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
Copy link

it works for me.

hope this can be merged soon!

@MHostinato
Copy link

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

@MrOffline77 MrOffline77 merged commit 3e51913 into sprintcube:master May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants