On Tue, 2006-05-02 at 10:00 -0500, Matthew wrote: > Then inside my handler module I have this: > > sub handler { > $r = shift; > $q = CGI->new(); > > $dbh = > DBI->connect_on_init("DBI:mysql:database=test;host=:/var/lib/mysql/mysql.sock;", >
That's not what connect_on_init. Is for. You use connect_on_init during startup, to tell Apache::DBI to open a connection when a new process is forked. Inside a handler, you should just call connect(). - Perrin