Skip to content

fix: MySQL 8.2+ and mysql:8 failing to start - #97

Merged
AaronFeledy merged 6 commits into
mainfrom
fix/mysql-8.4-startup
Oct 15, 2026
Merged

AaronFeledy merged 6 commits into
mainfrom
fix/mysql-8.4-startup

Conversation

@AaronFeledy

@AaronFeledy AaronFeledy commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

MySQL 8.2 removed expire_logs_days, but the recipe's MySQL 8 config still sets it, so mysql:8.2, 8.3 and 8.4 abort on startup with unknown variable 'expire_logs_days=10'. The bare mysql:8 alias (MySQL 8.4.5) was also loading the 5.7 config file and failing on query_cache_limit.

  • Replace expire_logs_days = 10 with binlog_expire_logs_seconds = 864000: same 10 days, supported since MySQL 8.0.1
  • Send mysql:8 to the MySQL 8 config
  • Remove the hardcoded mysql_native_password authentication, which MySQL 8.4 also rejects (unknown variable 'default_authentication_plugin=mysql_native_password'). Same change as fix: remove hardcoded mysql_native_password for MySQL 8.4 compat laravel#108
  • Add examples/backdrop-mysql84 on mysql:8 to CI

Verified locally on Lando 3.26.9: lando start with database: mysql:8 and PHP 5.6 boots MySQL 8.4.5 with the MySQL 8 config and binlog_expire_logs_seconds=864000.

Fixes #95


Note

Medium Risk
Changes default DB config and auth for all MySQL 8 recipe apps; low logic surface but affects every mysql:8 stack on upgrade.

Overview
Fixes Backdrop recipe database services failing to start on MySQL 8.2+ and the mysql:8 alias.

The MySQL 8 default config now uses binlog_expire_logs_seconds = 864000 instead of the removed expire_logs_days. Config selection treats any 8.x version (including bare mysql:8) as MySQL 8 so it loads mysql8.cnf rather than the 5.7-style mysql.cnf. The database service no longer forces mysql_native_password, which MySQL 8.4 rejects.

CI adds examples/backdrop-mysql84 to backdrop integration tests to exercise mysql:8 startup and the updated settings.

Reviewed by Cursor Bugbot for commit 8db5aef. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for lando-backdrop ready!

Name Link
🔨 Latest commit 8db5aef
🔍 Latest deploy log https://app.netlify.com/projects/lando-backdrop/deploys/6ad046a4c248ccbc791d3293
😎 Deploy Preview https://deploy-preview-97--lando-backdrop.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: 88 (🔴 down 4 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

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

@AaronFeledy
AaronFeledy merged commit 4545d55 into main Oct 15, 2026
34 checks passed
@AaronFeledy
AaronFeledy deleted the fix/mysql-8.4-startup branch October 15, 2026 11:53
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.

MySQL 8.4 fails to start in Backdrop recipe — deprecated Bitnami config parameters

1 participant