Friday 15 February 2013

How can i export data from mysql database as a code c#? -



How can i export data from mysql database as a code c#? -

i did in mysql workbench , when tried in c# application as:

string file = "d:\\backup.sql"; using (mysqlcommand cmd = new mysqlcommand()) { using (mysqlbackup mb = new mysqlbackup(cmd)) { cmd.connection = myconn; mb.exporttofile(file); } }

but gives error :

could not load file or assembly 'mysql.data, version=6.8.3.0, culture=neutral, publickeytoken=c5687fc88969c44d' or 1 of dependencies. scheme cannot find file specified.

c# mysql

No comments:

Post a Comment