Skip to content

Mariadb less then 10.5 command detection #6097

@wojsmol

Description

@wojsmol

Bug Report

Describe what you expect as the correct outcome

php ./wp-cli.phar db export
/usr/bin/env: 'mariadb-dump': No such file or directory
/usr/bin/env: 'mariadb-dump': No such file or directory

/usr/bin/mysql --version
/usr/bin/mysql  Ver 15.1 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64)using readline 5.1

Let us know what environment you are running this on

./wp-cli.phar --info
OS:     Linux 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64
Shell:  /bin/bash
PHP binary:     /usr/bin/php.bin81
PHP version:    8.1.32
php.ini used:   /etc/php81/php.ini
MySQL binary:   /usr/bin/mysql
MySQL version:
SQL modes:
WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:      phar://wp-cli.phar/vendor
WP_CLI phar path:       phar:///home/[USER]ftp/[DOMAIN]/wp-cli.phar
WP-CLI packages dir:    /usr/local/lib/wp-cli-packages/packages/
WP-CLI cache dir:       /home/[USER]/ftp/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.12.0

Provide a possible solution

If you happen to have a suggestion on how to fix this bug, please tell us in here.

Just leave this section out if you don't know how to fix it.

Provide additional context/screenshots
https://wordpress.slack.com/archives/C02RP4T41/p1747833927693649?thread_ts=1747833547.216129&cid=C02RP4T41

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions