[Mono-list] MySql and Mono Problems

Pablo Fischer exilion@yifan.net
16 Feb 2003 13:52:41 +0600


Hello all!

I downloaded the ByteFX.Data.MySQLClient and installed it in /usr/lib,
then I type a little code (http://unmada.ods.org/mono/mysqlsharp.cs) to
try to get some data of a table. But also I get this error:

Unhandled Exception: System.Net.Sockets.SocketException: Connection
refused
in (unmanaged) mono(mono_raise_exception+0x12) [0x80bb14b]
in (unmanaged)
mono(ves_icall_System_Net_Sockets_Socket_Connect_internal+0x66)
[0x80d1141]
in <0x0005a> 00 System.Net.Sockets.Socket:Connect (System.Net.EndPoint)
in <0x000b3> 00 ByteFX.Data.MySQLClient.Driver:CreateSocketStream
(string,int)
in <0x00038> 00 ByteFX.Data.MySQLClient.Driver:Open
(string,int,string,string,bool)
in <0x000e4> 00 ByteFX.Data.MySQLClient.MySQLConnection:Open ()
in <0x000a0> 00 .Test:Main (string[])

How you can see, its a problem when trying to connect to MySql, also..:

* Have mysql running
* The user have permissions
* The database and the table exists 

Any ideas?.. thanks.
-- 
Pablo Fischer <exilion@yifan.net>