Restore Mysql database query is not working in ASP.NET, C#

Posted by santhosha on Stack Overflow See other posts from Stack Overflow or by santhosha
Published on 2010-12-30T05:43:03Z Indexed on 2010/12/30 5:54 UTC
Read the original article Hit count: 260

Filed under:
|

We are using Mysql.exe to restore database by the following query

string cmd ="-h" + ViewState["host"].ToString() + " " + "-u" + 
ViewState["user"].ToString() + " " + "-p" + ViewState["password"].ToString() + 
" " + ViewState["dbName"].ToString() + "<" + " " + 
Server.MapPath("BackupFiles/") + path;

The same query is executing in MySql command prompt but we are not able to restore using the above query in VisualStudio .Net, we have tried MysqlImport.exe to do the restore but it was no use. we are newbie to MySql if any help would be appreciated.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about mysql