[Mono-list] Web Service cannot connect to Database

Ko Ko kkl_sg at yahoo.com
Thu Sep 29 05:52:30 EDT 2005


Hi Gonzalo
 
Thanks for your suggestion. But it has nothing to do with TCP. Because I use the same webservice coding with ByteFX on Windows and trying to access the mysql database on Linux, I can access it without any problems at all. So I think the problem is lying somewhere else. 
 
Regards,
Ko Ko

Gonzalo Paniagua Javier <gonzalo at ximian.com> wrote:
On Thu, 2005-09-29 at 00:15 -0700, Ko Ko wrote:
> Hi
> 
> I got problem connecting to MySQL Database on Mono. I can run the
> webservices. But when ever I try to invoke the database from
> webservices it kept giving me this error
> 
> The remote server returned an error: (500) Internal Server Error. 
> Unable to connect to any of the specified MySQL hosts
> 
> I am using ByteFX and also MySQL connector/Net. These are working fine
> on Windows Platform when I tested with .Net. On Linux it cannot
> connect to database. What could be the problem?

Check the output of 'netstat -ltn'. If there's nothing listening on port
3306 (may be on 127.0.0.1 or 0.0.0.0), mysql is not running with TCP
enabled and just listens on the unix socket.

-Gonzalo



_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



Reality starts with Dream 

		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20050929/e6b0fc27/attachment.html


More information about the Mono-list mailing list