Slow performance using mysqldump from C#
问题 I'm trying to launch mysqldump from my C# console application using this code: ProcessStartInfo procInfo = new ProcessStartInfo("mysqldump", "avisdb -uroot -p" + cs.Password); procInfo.CreateNoWindow = true; procInfo.RedirectStandardOutput = true; procInfo.UseShellExecute = false; Process proc = new Process(); proc.StartInfo = procInfo; proc.Exited += new EventHandler(proc_Exited); proc.Start(); proc.WaitForExit(); File.Delete("dump.sql"); StreamWriter dump = File.AppendText("dump.sql"); dump