Repository navigation
fix: remove hardcoded mysql_native_password for MySQL 8.4 compat - #164
Merged
Merged
Conversation
The default_authentication_plugin config variable was removed in MySQL 8.4. The bitnami image translates MYSQL_AUTHENTICATION_PLUGIN into this variable, causing a fatal startup error. The mysql plugin already handles 5.7 auth internally, so recipes don't need to set this. Fixes lando/mysql#69, lando/mysql#72
✅ Deploy Preview for lando-acquia ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
MySQL 8.4 removed the
default_authentication_pluginconfig variable (deprecated in 8.0.34, removed in 8.4). The bitnami image translates theMYSQL_AUTHENTICATION_PLUGINenv var into this config entry, causing MySQL 8.4 to fail with:Changes
authentication: 'mysql_native_password'from the recipe database confighub.docker.comto netlify checklinks todoPatternslando/mysqlplugin already handles the 5.7 case internally (builders/mysql.js:42), so recipes don't need to set thisBackwards Compatibility
mysql_native_passwordfor 5.7caching_sha2_passwordby default (correct modern auth)Related
lando/mysqlto conditionally set the env var: fix: conditionally set MYSQL_AUTHENTICATION_PLUGIN for MySQL 8.4 compat mysql#90Note
Medium Risk
Changes the database service auth configuration, which can impact connection behavior across MySQL versions, though it mainly removes a now-invalid default for MySQL 8.4. Also tweaks Netlify link-check settings with low functional risk.
Overview
Fixes MySQL 8.4 compatibility by removing the recipe-level hardcoding of
authentication: 'mysql_native_password'from thedatabaseservice definition inbuilders/acquia-base.js.Updates docs/CI hygiene by adding
hub.docker.comto Netlify checklinkstodoPatterns, and records the MySQL 8.4 fix in the unreleasedCHANGELOG.md.Written by Cursor Bugbot for commit bc4f4bb. This will update automatically on new commits. Configure here.