Dim myProcess As New Process()
myProcess.StartInfo.FileName = "cmd.exe"
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.WorkingDirectory = "C:\Program Files\MySQL\MySQL Server 5.7\bin\"
myProcess.StartInfo.RedirectStandardInput = True
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()
Dim myStreamWriter As StreamWriter = myProcess.StandardInput
Dim mystreamreader As StreamReader = myProcess.StandardOutput
myStreamWriter.WriteLine("mysql -u root -p******* tryagain < C:\Users\deo\Documents\dumps\Dump20160221.sql ")
myStreamWriter.Close()
myProcess.WaitForExit()
myProcess.Close()
我正在使用Mysql Server 5.7并通过MysqlWorkbench查看dbfiles 我想要做的是通过使用vb.net来恢复.sql数据库 但是这个错误阻止了我这样做。
我搜索了很多与我的问题相关但没有人符合我的错误情况 任何建议都将不胜感激。
答案 0 :(得分:1)