[CLI] Fix MySQL check in database dumper (#4897)

This commit is contained in:
JJ 2025-05-16 19:56:38 -04:00 committed by GitHub
parent 5b728a42f7
commit eb366e67b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ bool DatabaseDumpService::IsMySQLInstalled()
{
std::string version_output = GetMySQLVersion();
return version_output.find("mysql") != std::string::npos && version_output.find("Ver") != std::string::npos;
return version_output.find("mysql") != std::string::npos && (version_output.find("Ver") != std::string::npos || version_output.find("from") != std::string::npos);
}
/**