Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Connecting From ASP.NET Framework 3.5 to MySql error (3 replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>