this.Host = txtHost.Text;
this.User = txtUser.Text;
this.Pass = txtPass.Text;
MySqlConnection MyCon = new MySqlConnection("server=" + this.Host + "; user id=" + this.User + "; password=" + this.Pass + "; pooling=false;");
try
{
MyCon.Open();
MessageBox.Show("MySQL Connection Succeeded", "Success");
}
catch (MySqlException ex)
{
MessageBox.Show("MySQL Connection Failed! " + ex.Message, "Error");
}