platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
221 stars 120 forks source link

Use MariaDB-specific command names in "db:" commands #1338

Closed pjcdawkins closed 7 months ago

pjcdawkins commented 12 months ago

MariaDB introduced the mariadb command as a symlink in version 10.4.6 and then made it a separate binary in 10.5.2 with mysql being a symlink. Apparently and unfortunately the Debian mariadb-client package doesn't include the mysql symlink; the mariadb-client-compat package is needed on top.

pjcdawkins commented 12 months ago

This isn't possible because the relevant package version is on the application container and not easy enough to inspect

pjcdawkins commented 7 months ago

Reopening with a hack:

cmd="$(command -v mariadb-dump || echo -n mysqldump)"; "$cmd" ...