Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i used this coding>>>>>>>>>>>>>>>>>>>>>>.but not woking
private void rbt_Backup_Click(object sender, EventArgs e)
{
string constring = "server=localhost;user=root;pwd=qwerty;database=test;";
string file = "D:\\backup.sql";
using (MySqlConnection conn = new MySqlConnection(constring))
{
using (MySqlCommand cmd = new MySqlCommand())
{
using (MySqlBackup mb = new MySqlBackup(cmd))
{
cmd.Connection = conn;
conn.Open();
mb.ExportToFile(file);
conn.Close();
}
}
}
}
Error Message::::::::
Error 1 Assembly 'MySqlBackup, Version=2.0.6.0, Culture=neutral, PublicKeyToken=null' uses 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' which has a higher version than referenced assembly 'MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' d:\MySqlBackup.dll Medical
i need mysqlbackup.dll version 4.0..
plz help..........
Posted
Comments
Kornfeld Eliyahu Peter 7-Dec-14 3:18am    
You need to update your MySQL driver or downgrade MySQLBackup...
ZurdoDev 7-Dec-14 22:09pm    
I suggest you post as solution.
ZurdoDev 7-Dec-14 22:10pm    
As Kornfeld stated, the error should be pretty clear.

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