I am creating connection with my online mysql database but it gives me the error (unable to connect to any of the specified Mysql hosts).
this is my code:
private void button1_Click(object sender, EventArgs e)
{
try
{
MySqlConnection con1 = new MySqlConnection("Server=http://eu5org.freewebhostingarea.com; Port=3306; Database=477928; Uid=477928; Pwd=password123;");
con1.Open();
MessageBox.Show("Connection Established");
con1.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
how could i correct this?