Skip to content

Commit bd21da9

Browse files
authored
Check mariadb and mariadb-dump before SqlMariaDB (#6272)
1 parent 16076b2 commit bd21da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sql/SqlMysql.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function make(array $dbSpec, array $options)
2525
$process = Drush::shell('mysql --version');
2626
$process->setSimulated(false);
2727
$process->run();
28-
if ((!$process->isSuccessful() || str_contains($process->getOutput(), 'MariaDB')) && self::programExists('mariadb')) {
28+
if ((!$process->isSuccessful() || str_contains($process->getOutput(), 'MariaDB')) && self::programExists('mariadb') && self::programExists('mariadb-dump')) {
2929
$instance = new SqlMariaDB($dbSpec, $options);
3030
} else {
3131
$instance = new self($dbSpec, $options);

0 commit comments

Comments
 (0)