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!!!");
}
Post the code please.
– Renato Junior
SqlConnection
does not work for Mysql– NoobSaibot
What could I use then?
– Ahri Main
Look at that answer Access Mysql with C#
– NoobSaibot
Thanks guys it worked out :)
– Ahri Main