Connection error in the Connection string

Asked

Viewed 36 times

0

Hello, trying to connect my VS to Mysql by string connection I get every time error that the server was not found, as I should proceed?

private void btnCadastrarConfirmed_Click(object sender, EventArgs e)
{
    SqlConnection obj = new SqlConnection("server = localhost; userid = root; database = myshop; persistsecurityinfo = True") ;

    obj.Open();
    MessageBox.Show("GRAZADEUS!!!"); 
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.