MySqlConnection conn = new MySqlConnection("server= sql12.freesqldatabase.com;port=3306;database=sql12206166;User Id=sql12206166;password=R4qBiIdj88;charset=utf8");
try
{
if (conn.State == ConnectionState.Closed)
{
conn.Open();
textView1.Text = "open";
}
}
catch (MySqlException ex)
{
new AlertDialog.Builder(this)
.SetMessage(ex.ToString())
.SetTitle("hala")
.SetPositiveButton("Close", (sender, args) =>
{
})
.Show();
}
i have error in conn.open();
Unhandled Exception:
System.FormatException: Input string was not in a correct format. occurred