Hi,
I have a problem connecting to MySQL from VS 2010 (C#) (Framework 3.5)
I downloaded the mysql-connector-net-5.2.7-noinstall package. I added the mysql.data.dll in my application (console application).
My connectionstring is as follows:
mysqlConn.ConnectionString = "server=" + sMySQLServer + ";uid=" + sMySQLDBUser + ";pwd=" + sMySQLDBPwd + ";database=" + sMySQLDB + ";";
When it tries to connect I get the following exception:
No connection could be made because the target machine actively refused it (here it puts the ip):3306
Source: MySql.Data
Please help.
Thanks in advanced
I have a problem connecting to MySQL from VS 2010 (C#) (Framework 3.5)
I downloaded the mysql-connector-net-5.2.7-noinstall package. I added the mysql.data.dll in my application (console application).
My connectionstring is as follows:
mysqlConn.ConnectionString = "server=" + sMySQLServer + ";uid=" + sMySQLDBUser + ";pwd=" + sMySQLDBPwd + ";database=" + sMySQLDB + ";";
When it tries to connect I get the following exception:
No connection could be made because the target machine actively refused it (here it puts the ip):3306
Source: MySql.Data
Please help.
Thanks in advanced