Je voudrais restaurer ma base de données dans MySQL. Lorsque j'essaie manuellement d'utiliser cmd pour exécuter la commande, il la restaure dans la base de données, mais dans les codes C#, cela ne fonctionne pas.C# Restauration MySQL
S'il vous plaît, aidez-moi à voir où est l'erreur. Merci!
using System.IO;
using System.Diagnostics;
Process process = new Process();
process.StartInfo.FileName = @"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe";
process.StartInfo.Arguments = @"--verbose --user=root --password=qwerty123456 test < C:\Users\Aaron\testing.SQL";
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardInput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.CreateNoWindow = true;
process.Start();