As of version 4 of AOLserver (IIRC) the nsdb module is no longer in the
core and you need to load it manualy if you want to use any db.

Below:
ns_section "ns/server/${servername}/modules"

add:
ns_param nsdb ${bindir}/nsdb.so

This wil in turn load your mysql driver.

Cheers,
Bas.


John Ekins said:
> Hello,
>
> I'm trying (and failing) to get AOLserver connected to MySQL. I have
> downloaded the nsmysql module and built it. I noted from the README that
> it was written for AOLserver 3, but it seems to have been installed
> correctly. ldd shows no broken dependencies, but I don't think it's that
> anyway.
>
> I've copied in the sample connection pool stuff into my config.tcl which
> I've pasted below. The problem is AOLserver just doesn't find it. There
> is nothing in the server.log about even trying to modload nsmysql.so.
>
> Does anyone have AOLserver 4.0.10 + MySQL working together? If so, what
> am I missing?
>
>
> Thanks,
> John.
>
>
>
> Part of my config.tcl:
> # mysql
> ns_section "ns/db/drivers"
> ns_param mysql        nsmysql.so
>
> ns_section "ns/db/pools"
> ns_param mysqldb      "MySQL Pool"
>
> ns_section "ns/db/pool/mysqldb"
> ns_param driver       mysql
> ns_param connections  2
> ns_param user         jre
> ns_param password     foobar
> ns_param datasource   localhost:3306:test
> ns_param verbose      on
>
> ns_section "ns/server/${servername}/db"
> ns_param DefaultPool  mysqldb
> ns_param Pools        *
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to