[Mono-list] MySql and Mono Problems
Reggie Burnett
rykr@bellsouth.net
Sun, 16 Feb 2003 19:31:25 -0600
Are you certain that you have MySQL running? Also, you didn't specify a
port number so is MySQL running using it's standard port (3306)?
Reggie
> -----Original Message-----
> From: mono-list-admin@lists.ximian.com [mailto:mono-list-
> admin@lists.ximian.com] On Behalf Of Pablo Fischer
> Sent: Sunday, February 16, 2003 1:53 AM
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] MySql and Mono Problems
>
> 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>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list