I'm trying to connect MySQL in C# develope in Expression Blend 4 but i get following error ?
try
{
string serverConnection = "SERVER=xxx.xxx.xxx.xxx; UID=xxx; PASSWORD=xxx; DATABASE=xxx;";
MySqlConnection conn = new MySqlConnection(serverConnection);
conn.Open();
MessageBox.Show("Successfully connected");
conn.Close();
}
catch (Exception ex)
{
MessageBox.Show("Error:"+ex.Message);
}
Here is the error:
Unable to connect to any of the specified MySQL hosts