Hello
I'm having struggle while i try to kill process of mysql.
In task manager i have "mysqld.exe" running and i try using this code, for other applications of windows it works, only for mysql its not.
Public Shared Function ApplicationKill(ByVal ApplicationName As String) As EnumModels.ServerStatus
For Each processuse In Process.GetProcessesByName(ApplicationName)
Try
processuse.Kill()
processuse.WaitForExit()
Return EnumModels.ServerStatus.NotRunning
Catch __unusedException1__ As Exception
Return EnumModels.ServerStatus.Running
End Try
Next
Return EnumModels.ServerStatus.Running
End Function
and KillApplication("mysqld") does nothing to it
any ideas how to make it properly kill process?
And other method is proper way to run the process