var
ST: string;
begin
ST := IncludeTrailingBackslash(ExtractFilePath(GetGlobalVar("HEPublicationFile","")));
RunAProgram(ST + "mysql\bin\mysqld.exe", "--defaults-file=mysql\my.ini --standalone ", ST, false, SW_HIDE);
end;
ST := IncludeTrailingBackslash(ExtractFilePath(GetGlobalVar("HEPublicationFile","")));
SP := "ROOTPASSWORD";
RunAProgram(ST + "mysql\bin\mysqladmin.exe", "shutdown -u root -p" + SP, ST, false, SW_HIDE);
Yes, it is closed !gdgsupport said:Strange. Have you checked that after running the 2nd code, the mysqld.exe daemon process is closed?
Error in script:gdgsupport said:Change the start code to:
IncludeTrailingBackslash(ExtractFilePath(GetGlobalVar(“HEPublicationFile”,“”))); RunAProgram(ST + “mysql\bin\mysqld.exe”, "–defaults-file=mysql\my.ini --standalone ", ST, false, SW_SHOW ); end;
and see if there is any error displayed when you start MySQL.
That means the server had a fault for restarting. Please check the logs in the “mysql” subfolder.Kaizerx said:though it has a blink appearance of cmd
We use essential cookies to make this site work, and optional cookies to enhance your experience.