Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone..

i want to take backup of mysql database programitically using c#. i went through lot of examples all are working fine..
there is an option in mysql workbench to dump the selected databases and restore the same. when i compare dumps from workbench and dump from my app (using mysqldump.exe and process class), i found out both are different.. my app generates dump as one file for one database and the same cannot be restored using mysql.exe and workbench. but dump from workbench is well defined and it can be restored in any instance.


my question is how to generate dump files as generated in mysql workbench..??


thanks
Posted
Comments
Garth J Lancaster 3-Dec-14 3:36am    
I would have thought the parameters MySQLWorkbench passes to mysqldump would be in its setup/config somewhere ? (and yet, a quick google doesn't seem to find them) - there's also apparently a bundled version of mysqldump that it can use if you don't point it at a different version. There is a last resort way of finding out what parameters are used, a little messy .... fire up c# or c++, create a program called mysqldump that dumps all the command line its given to a file - point mysqlworkbench at the 'dummy' mysqldump and run it (don't forget to point it back) .. but there must be an easier way, surely
vikaskallidantheyil 4-Dec-14 4:31am    
sorry garth ..i didnt understand wat u told regarding writing a programmme to dump. can u please elaborate..

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