Hi all, i have a problem again :(
I trying to connect to an MySQL server but without success...
So far i write this:
string strConn = @"Server='localhost';Database='upoznavanje';Uid='root';Pwd=' ';";
SqlConnection myConn = new SqlConnection(strConn);
myConn.Open();
I have MySQL server on my PC and it's running. When start program, i receive:
Quote:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
Can someone post here a code that do this correct?
[Edited by - toxi on September 25, 2007 12:45:02 PM]