Forum posts for mysqld-nt.exe

taskkill Mysql from .ASPX — Permission Problems?

Our mysql instance occaisionally locks up during backups. Currently we must VPN into the corporate network (to obtain work I.P.), remote desktop into the server, open the task manager, and manually kill the mysqld-nt.exe process.

Instead of doing all of this we are attempting to create a simple webpage that we can log into to kill and restart the service.

The following block of code is wired up inside our new .aspx page works as I intended on my local desktop (running in VS debug mode), but doesn't do anything when pushed to the server (no errors or anything):

Process myProcess = new Process();
ProcessStartInfo myProcessStartInfo = new ProcessStartInfo('taskkill');
myProcessStartInfo.Arguments = '/IM mysqld-nt.exe /F';
myProcessStartInfo.UseShellExecute = false;
myProcessStartInfo.RedirectStandardOutput = true;
myProcessStartInfo.CreateNoWindow = true;
myProcess.StartInfo = myProcessStartInfo;
myProcess.Start();
myProcess.Close();


If I run 'taskkill /IM mysqld-nt.exe /F' from the command prompt on the server it kills the service. So I think it might be a permissions issue, but I'm not positive.

Can anyone spot something wrong with the code block above, or tell me how to adjust the permissions so .Net can stop/start this process?

Thanks for the help,
Sam

View complete forum thread with replies

Other posts related to mysqld-nt.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

mysqld-nt.exe exist in task list,but actually it's not running?
taskkill Mysql from .ASPX — Permission Problems?
how to get around The '--' operator works only on variables or on properties
MySQL stops working every five to six hours
Mysql server not starting in xampp
recover data using ibdata1 file mysql
Getting error 2003 when trying to connect to MySQL server after reboot
What's the difference between IN and INNER JOIN in my case?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.