Click here to Skip to main content
15,896,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Please Anybody have solution so please give me how to programmatically get database backup from mysql using .NET
please give code if anybody know .........
Posted
Updated 18-Jun-11 7:25am
v4

You can use a combination of SHOW DATABASES[^], SHOW TABLES[^] and DESCRIBE[^]

When you got the table struct you can use SELECT[^] statement to retrieve all data in 1 table at the time. Repeat that for all tables in the database.
 
Share this answer
 
Best way is to use mysqldump[^] or check out phpmyadmin[^] and find out how they do it.
 
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