[Mono-list] MySQL Connector

Robert Jordan robertj at gmx.net
Sun Jul 16 17:00:16 EDT 2006


Florian Hester wrote:
> I am using the MySql Connecter for .NET to connect to the MySql server.
> But i am keep getting the following error:
> Unhandled Exception: System.Net.Sockets.SocketException: The socket is not
> connected


> The error happens when opening the MySql connection.
> The server is located on the same computer on Linux. I have tried to
> connect to MySql with PHP which worked. I have tried gmcs and mcs
> compilers, but no difference.

The MySQL server is probably not configured to accept
network connections. You can test this with

	telnet localhost 3306

Comment out the "skip-networking" directive from /etc/my.cnf.


More information about the Mono-list mailing list