fix(cli): Use mysql CLI as fallback is mariadb isnt found (#23006)
This commit is contained in:
parent
bedef22f34
commit
9b112b3e03
1 changed files with 1 additions and 1 deletions
|
|
@ -726,7 +726,7 @@ def _guess_mariadb_version() -> tuple[int] | None:
|
|||
# in non-interactive mode.
|
||||
# Use db.sql("select version()") instead if connection is available.
|
||||
with suppress(Exception):
|
||||
mariadb = which("mariadb")
|
||||
mariadb = which("mariadb") or which("mysql")
|
||||
version_output = subprocess.getoutput(f"{mariadb} --version")
|
||||
version_regex = r"(?P<version>\d+\.\d+\.\d+)-MariaDB"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue