Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/pr-backdrop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- examples/backdrop-init
- examples/backdrop-mariadb
- examples/backdrop-mysql8
- examples/backdrop-mysql84
- examples/backdrop-mysql-client
- examples/backdrop-nginx
lando-version:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

* Updated to [@lando/php@1.12.0](https://github.com/lando/php/releases/tag/v1.12.0) to enable mod_headers/mod_expires by default and fix xdebug log ownership
* Fixed MySQL 8.2+ startup failure by replacing removed `expire_logs_days` with `binlog_expire_logs_seconds` [#95](https://github.com/lando/backdrop/issues/95)
* Fixed `mysql:8` startup failure by using the MySQL 8 config instead of the 5.7 config
* Fixed MySQL 8.4 startup failure by removing hardcoded `mysql_native_password` authentication [#95](https://github.com/lando/backdrop/issues/95)

## v1.9.2 - [February 22, 2026](https://github.com/lando/backdrop/releases/tag/v1.9.2)

Expand Down
2 changes: 1 addition & 1 deletion config/mysql8.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ read_buffer_size = 2M
# other settings you may need to change.
#server-id = 1
#log_bin = /src/.lando/log/mysql-bin.log
expire_logs_days = 10
binlog_expire_logs_seconds = 864000
max_binlog_size = 101M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
Expand Down
10 changes: 10 additions & 0 deletions examples/backdrop-mysql84/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: backdrop-mysql84
recipe: backdrop
config:
webroot: web
php: 5.6
database: mysql:8

# do not remove this
plugins:
"@lando/backdrop": ../..
54 changes: 54 additions & 0 deletions examples/backdrop-mysql84/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Backdrop MySQL 8.4 Example

This example exists primarily to test the following documentation:

* [Backdrop Recipe](https://docs.lando.dev/backdrop/config.html)

## Start up tests

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

## Verification commands

Run the following commands to validate things are rolling as they should.

```bash
# Should serve from web folder
lando exec appserver -- curl -L localhost | grep "MYSQL8"

# Should be running apache 2.4 by default
lando exec appserver -- apachectl -V | grep 2.4
lando exec appserver -- curl -IL localhost | grep Server | grep 2.4

# Should use php 5.6 if specified by user
lando php -v | grep "PHP 5.6"

# Should be running mysql 8.4.x via the mysql:8 alias
lando mysql -V | grep '8.4.'

# Should be able to connect to the database with the default creds
lando mysql backdrop -e quit

# Should use the default mysql8 config file
lando exec database -- cat /opt/bitnami/mysql/conf/my_custom.cnf | grep "LANDOBACKDROPMYSQL8CNF"
lando mysql -u root -e "show variables;" | grep innodb_lock_wait_timeout | grep 127

# Should use binlog_expire_logs_seconds instead of the removed expire_logs_days
lando mysql -u root -e "show variables;" | grep binlog_expire_logs_seconds | grep 864000
```

## Destroy tests

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
1 change: 1 addition & 0 deletions examples/backdrop-mysql84/web/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MYSQL8
1 change: 1 addition & 0 deletions examples/backdrop-mysql84/web/info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php phpinfo(); ?>
2 changes: 1 addition & 1 deletion utils/get-config-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = options => {
const database = _.first(dbConfig.split(':'));
const version = _.last(dbConfig.split(':')).substring(0, 2);
if (database === 'backdrop-mysql' || database === 'mysql' || database === 'mariadb') {
if (version === '8.') {
if (_.startsWith(version, '8')) {
options.defaultFiles.database = 'mysql8.cnf';
} else {
options.defaultFiles.database = 'mysql.cnf';
Expand Down
1 change: 0 additions & 1 deletion utils/get-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = options => ({
},
database: {
config: getServiceConfig(options, ['database']),
authentication: 'mysql_native_password',
type: `backdrop-${options.database}`,
portforward: true,
creds: {
Expand Down
Loading