Skip to content
Closed
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-mysql-client
- examples/backdrop-nginx
lando-version:
- 3-edge
Expand Down
9 changes: 9 additions & 0 deletions examples/backdrop-mysql-client/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: backdrop-mysql-client
recipe: backdrop
config:
php: '8.4'
database: mysql:8.0

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

This example tests that the backdrop recipe with MySQL correctly auto-detects
and installs the native MySQL client, avoiding SSL/TLS errors and MariaDB dump
format issues when using `bee db-export`.

See: https://github.com/lando/lando/issues/3833

## 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 auto-detect MySQL and install the MySQL client (not MariaDB)
lando exec appserver -- mysql --version | grep -qiv "MariaDB"
```

```bash
# Should be able to connect to MySQL without SSL errors
lando mysql backdrop -e "SELECT 1"
```

```bash
# Should be able to export with bee without SSL errors
lando bee db-export --file=/tmp/bee-export.sql
```

```bash
# Exported SQL should use MySQL dump format (not MariaDB)
lando exec appserver -- cat /tmp/bee-export.sql | grep -qi "MariaDB dump" || echo $? | grep 1
```

```bash
# Should be able to export with db-export without SSL errors
lando db-export --stdout > /tmp/lando-export.sql
cat /tmp/lando-export.sql | grep -i "Dump" | grep -qi "MariaDB" || echo $? | grep 1
```

## 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
```
Loading