C# connect to my web sql

  • Thread starter Thread starter sarunasz
  • Start date Start date
S

sarunasz

Guest
Hello,

Is it possible connect application C# languages with web site mysql. I tryed use this line, but application not connected to mysql

private void Button_Click(object sender, RoutedEventArgs e)
{
string connetionString = null;
MySqlConnection cnn;

connetionString = "server=vilkdalgis.serveriai.lt; database=duomynys;uid=login;pwd=******";

cnn = new MySqlConnection(connetionString);
try
{
cnn.Open();
MessageBox.Show("Connection Open ! ");
cnn.Close();
}
catch (Exception ex)
{
MessageBox.Show("Can not open connection ! ");
}
}

Continue reading...
 
Back
Top