From 5432b85713b7a9cc6b77852b8dcea549d26d23f8 Mon Sep 17 00:00:00 2001 From: codebymikey <9484406+codebymikey@users.noreply.github.com> Date: Fri, 11 Oct 2024 04:31:51 +0100 Subject: [PATCH] Use mariadb executable where possible (#6128) --- src/Sql/SqlMariaDB.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Sql/SqlMariaDB.php b/src/Sql/SqlMariaDB.php index ed66a3b66a..9a230fea04 100644 --- a/src/Sql/SqlMariaDB.php +++ b/src/Sql/SqlMariaDB.php @@ -10,6 +10,14 @@ class SqlMariaDB extends SqlMysql { use ExecTrait; + public function command(): string + { + if (self::programExists('mariadb')) { + return 'mariadb'; + } + return parent::command(); + } + public function dumpProgram(): string { if (self::programExists('mariadb-dump')) {