Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii...i am doing project in windows application(c#)...i dont know how to take backup and restore mysql data in windows application...if anybody know please send me code.....
Posted
Comments
Oshtri Deka 19-Mar-12 8:27am    
Data as database or selected tables?
ANOOP CL NAIR 19-Mar-12 8:32am    
can u please send me code for backup and restore mysql database in windows c#
ANOOP CL NAIR 19-Mar-12 8:36am    
full database data i need to take backup and restore....

SQL query
SQL
BACKUP DATABASE dbName TO DISK = 'PATH'
RESTORE DATABASE dbName FROM DISK = 'PATH'



or refer this link SQL Server 2005 Database Backup and Restore using C# and .NET 2.0[^]

MySQL Restore & Backup in C# using [^]

Making Your Own MySQL Backup and Restore Tools in C# (Supports Unicode, UTF8)[^]
 
Share this answer
 
v3
Comments
ANOOP CL NAIR 19-Mar-12 9:06am    
Actually i want to do in mysql database...can u please explain it....
Sushil Mate 20-Mar-12 1:16am    
Check my updated solution.
ANOOP CL NAIR 20-Mar-12 1:53am    
thanks a lot....its working...
Sushil Mate 20-Mar-12 2:20am    
welcome :)
Hi ,

please follow this link,

this may help you,

thanks,
-Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900