[Mono-list] Connecting to a MySQL server using the netbios name instead of ip address

Olivier Duclos olivier.duclos at gmail.com
Tue Dec 30 17:04:41 EST 2008


Problem solved. Thank you !

I just discovered the secrets of nsswitch.conf in the samba doc.


On Tue, 30 Dec 2008 21:14:33 -0000
"Jorge Bastos" <mysql.jorge at decimal.pt> wrote:

> Not mono or MySQL related,
> You have to tune your hosts resolve order in your linux machine.
> 
> 
> 
> > -----Original Message-----
> > From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> > bounces at lists.ximian.com] On Behalf Of Olivier Duclos
> > Sent: terça-feira, 30 de Dezembro de 2008 21:12
> > To: mono-list at lists.ximian.com
> > Subject: [Mono-list] Connecting to a MySQL server using the netbios
> > name instead of ip address
> > 
> > Hi,
> > 
> > I have an application developed under Windows which connect to a MySQL
> > database. The problem is the DB server doesn't (and cannot) have a
> > static ip address. So, in our SqlConnectionString, we used the netbios
> > computer name.
> > 
> > This works under Windows but not under Linux. Any idea how to fix this
> > ?
> > 
> > Thanks for your help.
> > --
> > -OD
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 


More information about the Mono-list mailing list