This is the error I am getting...What error code or error message are you getting from the failed connections?
string connString = "Server=db4free.net;Port=3306;database=barachtestingdb;User Id=barachtestingdb;Password=barachtestingdb;charset=utf8";
MySqlConnection conn = new MySqlConnection(connString);
if (conn.State == ConnectionState.Closed)
{
try
{
conn.Open();
DisplayAlert("Yeah", "Connection established", "OK");
}
catch (MySqlException ex)
{
DisplayAlert("Naaah", "Connection failed: " + ex.Message, "Quit");
}
finally
{
conn.Close();
DisplayAlert("Finally", "Connection closed", "OK");
}
}