[Mono-dev] ASP.NET MySql connection
Ben Timby
btimby at gmail.com
Mon Dec 18 12:26:27 EST 2006
It looks like your code is using System.Data.SqlClient, which is a TDS
client, for use with MS SQL Server, NOT MySql.
Dariusz Linowski wrote:
> System.Data.SqlClient.SqlException: Server does not exist or
> connection refused. ---> Mono.Data.Tds.Protocol.TdsInternalException:
> Server does not exist or connection refused. --->
> System.Net.Sockets.SocketException: Connection refused
>
> at System.Net.Sockets.Socket.Connect (System.Net.EndPoint
> remote_end) [0x00000]
>
> at Mono.Data.Tds.Protocol.TdsComm..ctor (System.String dataSource,
> Int32 port, Int32 packetSize, Int32 timeout, TdsVersion tdsVersion)
> [0x00000] --- End of inner exception stack trace ---
Ensure that you are using the MySql.Data.MySqlConnection to connect to
MySql.
http://dev.mysql.com/doc/refman/5.0/en/connector-net-examples-mysqlconnection.html
More information about the Mono-devel-list
mailing list