Skip to content

fix: remove hardcoded mysql_native_password for MySQL 8.4 compat - #164

Merged
AaronFeledy merged 1 commit into
mainfrom
fix/mysql84-auth
Mar 2, 2026
Merged

AaronFeledy merged 1 commit into
mainfrom
fix/mysql84-auth

Conversation

@AaronFeledy

@AaronFeledy AaronFeledy commented Mar 2, 2026 •

Copy link
Copy Markdown
Member

Summary

MySQL 8.4 removed the default_authentication_plugin config variable (deprecated in 8.0.34, removed in 8.4). The bitnami image translates the MYSQL_AUTHENTICATION_PLUGIN env var into this config entry, causing MySQL 8.4 to fail with:

[ERROR] [MY-000067] [Server] unknown variable 'default_authentication_plugin=mysql_native_password'

Changes

  • Removed hardcoded authentication: 'mysql_native_password' from the recipe database config
  • Added hub.docker.com to netlify checklinks todoPatterns
  • The lando/mysql plugin already handles the 5.7 case internally (builders/mysql.js:42), so recipes don't need to set this

Backwards Compatibility

  • MySQL 5.7: ✅ Unaffected — the mysql plugin forces mysql_native_password for 5.7
  • MySQL 8.0-8.3: ✅ Uses caching_sha2_password by default (correct modern auth)
  • MySQL 8.4+: ✅ No longer crashes on startup

Related


Note

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 the database service definition in builders/acquia-base.js.

Updates docs/CI hygiene by adding hub.docker.com to Netlify checklinks todoPatterns, and records the MySQL 8.4 fix in the unreleased CHANGELOG.md.

Written by Cursor Bugbot for commit bc4f4bb. This will update automatically on new commits. Configure here.

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
@netlify

netlify Bot commented Mar 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lando-acquia ready!

Name Link
🔨 Latest commit bc4f4bb
🔍 Latest deploy log https://app.netlify.com/projects/lando-acquia/deploys/69a4e9fcbd517e0008c385c3
😎 Deploy Preview https://deploy-preview-164--lando-acquia.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (no change from production)
Accessibility: 98 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@AaronFeledy
AaronFeledy merged commit 37994aa into main Mar 2, 2026
32 checks passed
@AaronFeledy
AaronFeledy deleted the fix/mysql84-auth branch March 2, 2026 02:18
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.

1 participant