path to load mysqld from the same directory like cqrlog binary padded

This commit is contained in:
ok2cqr 2018-09-02 20:42:25 +02:00
parent f1b5c1764a
commit bd0c93c66b

View File

@ -3367,6 +3367,9 @@ var
l : TStringList;
info : String;
begin
Writeln(ExtractFilePath(Paramstr(0)) + 'mysqld');
if FileExistsUTF8(ExtractFilePath(Paramstr(0)) + 'mysqld') then
Result := ExtractFilePath(Paramstr(0)) + 'mysqld';
if FileExistsUTF8('/usr/bin/mysqld') then
Result := '/usr/bin/mysqld';
if FileExistsUTF8('/usr/bin/mysqld_safe') then //Fedora