On Fri, 16 Jan 2004 17:54:06 -0500
"Syed Ali" <[EMAIL PROTECTED]> wrote:

> I have a Perl CGI script which uses DBI to access MySQL.
> I noticed that each query through the Perl CGI script using DBI has a
> connect, query and then quit.
> I was wondering if there is a way of keeping the connection persistent
> to Mysql through the Perl CGI script.
> 
> In my Apache httpd.conf I inserted PerlModule Apache::DBI before all
> LoadModule lines, but that does not solve the problem.
> I also downloaded the Apache::DBI module from CPAN and installed it.
> Perhaps I need to do something else?

Is your script running through mod_perl or plain CGI? If it is running
through CGI, you can't make persistent connection to MySQL. You should
check:
http://perl.apache.org/docs/index.html

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to