David Beck - 2005-07-25

Hi There,

I tried to setup a jailed configuration, where some jails would use a shared mysql database in a separate jail. It didn't work because libnss-mysql complained that it is unable to connect to the remote mysql database.

After a few hours of debugging I found that the issue is that the DEF_TIMEOUT in mysql.c should be a pointer.

There is a workaround for this, to make it work: create a my.cnf file with the following lines:

[libnss-mysql]
connect-timeout=3

After that I found a patch for this problem: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/82731

David.