in reply to (tye)Re: mod_perl breaks MySQL connectivity...
in thread mod_perl breaks MySQL connectivity...

I believe you need to install and enable Apache::DBI for DBI to maintain database connections.

-Lee

"To be civilized is to deny one's nature."
  • Comment on Re: (tye)Re: mod_perl breaks MySQL connectivity...

Replies are listed 'Best First'.
Re: Re: (tye)Re: mod_perl breaks MySQL connectivity...
by Hero Zzyzzx (Curate) on May 22, 2001 at 16:18 UTC

    Just to expand a little on this, Apache::DBI is extremely easy to use. Download and install it, then add

    PerlModule Apache::DBI

    to the relevant section of your httpd.conf (the one you referenced above). Apache::DBI should now be handling all your connections.

    Assuming you've taken care of any variable scoping issues, you should have persistent connections. At least, this is how everything worked on linux for me.