【修改】取消关闭
This commit is contained in:
@@ -509,17 +509,16 @@ class Program
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 关闭临时 MySQL(只关掉端口 48086)
|
// 关闭临时 MySQL(只关掉端口 48086)
|
||||||
if (proc.ProcessName.Equals("mysqld", StringComparison.OrdinalIgnoreCase))
|
// if (proc.ProcessName.Equals("mysqld", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
// {
|
||||||
string cmdLine = GetCommandLine(proc);
|
// string cmdLine = GetCommandLine(proc);
|
||||||
if (!string.IsNullOrEmpty(cmdLine) && cmdLine.Contains("--port=48086"))
|
// if (!string.IsNullOrEmpty(cmdLine) && cmdLine.Contains("--port=48086"))
|
||||||
{
|
// {
|
||||||
Console.WriteLine($"Closing temporary MySQL (PID: {proc.Id}) on port 48086");
|
// Console.WriteLine($"Closing temporary MySQL (PID: {proc.Id}) on port 48086");
|
||||||
proc.Kill();
|
// proc.Kill();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user