Skip to content

Commit a328c40

Browse files
committed
Fix MariaDB wrapper script command names and test auto-detection
- Fix mariadb-compat-install.sh to use hyphens in command names (mariadb-dump instead of mariadbdump) - Add explicit db_client: mysql:8.4 to php-mysql84 test service to avoid auto-detection issues in multi-database environments
1 parent a10de5c commit a328c40

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

examples/db-client/.lando.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
php-mysql84:
66
type: php:8.4
77
via: cli
8+
db_client: mysql:8.4
89

910
mysql84:
1011
type: mysql:8.4

scripts/mariadb-compat-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ echo "Installing MariaDB compatibility wrappers..."
99

1010
# Create wrapper scripts for each mysql* command that maps to mariadb* equivalent
1111
for cmd in mysql mysqldump mysqladmin mysqlcheck mysqlimport mysqlshow; do
12-
mariadb_cmd="mariadb${cmd#mysql}"
12+
suffix="${cmd#mysql}"
13+
mariadb_cmd="mariadb${suffix:+-}${suffix}"
1314

1415
if command -v "$mariadb_cmd" &> /dev/null; then
1516
cat > "/usr/local/bin/$cmd" << EOF

0 commit comments

Comments
 (0)