When using mysql: 8.4 in the Backdrop recipe, the MySQL container fails to start with:
ERROR [MY-000067] [Server] unknown variable 'default_authentication_plugin=mysql_native_password'
ERROR [MY-000067] [Server] unknown variable 'expire_logs_days=10'
Root Cause:
Bitnami's MySQL initialization script writes these deprecated parameters (removed in MySQL 8.0+) to my.cnf during container boot, after Lando's build_as_root hooks have run. This makes them impossible to intercept via standard Lando configuration.
Steps to Reproduce:
- Set mysql: 8.4 in .lando.yml with Backdrop recipe
- Run lando start
- See MySQL initialization failure
Current Workaround:
Use mysql: 5.7 instead
Suggested Fix:
- Consider using a different MySQL 8.4 image that doesn't auto-inject deprecated parameters
- OR add Lando post-boot hook support for services
- OR provide recipe-level option to skip Bitnami's default_authentication_plugin setting
When using mysql: 8.4 in the Backdrop recipe, the MySQL container fails to start with:
ERROR [MY-000067] [Server] unknown variable 'default_authentication_plugin=mysql_native_password'
ERROR [MY-000067] [Server] unknown variable 'expire_logs_days=10'
Root Cause:
Bitnami's MySQL initialization script writes these deprecated parameters (removed in MySQL 8.0+) to my.cnf during container boot, after Lando's build_as_root hooks have run. This makes them impossible to intercept via standard Lando configuration.
Steps to Reproduce:
Current Workaround:
Use mysql: 5.7 instead
Suggested Fix: