You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
expire_logs_days MySQL config option has been removed in MySQL 8.4 #114
MySQL 8.4 fails to start: expire_logs_days in config/mysql8.cnf
expire_logs_days was deprecated in MySQL 8.0 and removed in 8.2 (WL#10924). It still works on mysql:8.0, which is why the default setup isn't affected.
Summary
With database: mysql:8.4, the database service exits right after starting. The recipe's config/mysql8.cnf sets expire_logs_days = 10 (line 52). MySQL removed that variable in 8.2, so 8.4 treats it as unknown and aborts at startup.
Suggested fix
The recipe mounts ~/.lando/config/laravel/mysql8.cnf at /opt/bitnami/mysql/conf/my_custom.cnf. That file (config/mysql8.cnf on main, line 52) contains:
expire_logs_days = 10
Replace it with the 8.0+ equivalent, which also works on 8.0:
#109 ("Mysql 8.4 Support") was closed by #108, which removed the hard-coded mysql_native_password. That PR didn't change expire_logs_days, so mysql:8.4 still fails to start with this recipe.
Activity