Thank you everybody for all your help. The problem was not a DBD or Perl
problem at all. The script was named domains.pl and thus Apache was running
it through mod_perl first. I changed the name to domains.cgi and all was
well.
Thanks again,
- Ian
----- Original Message -----
From: "Ian Feldberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 12:16 PM
Subject: can't connect to mysql database from web
I have a cgi script that can't seem to connect to a mysql database when
running from the web. When I logon and run it from the command line, it
works fine!
It dies on the $dbh->connect(...) line. It dies before the line returns so I
can't check $DBI::err or $DBI::errstr.
Does mysql use any environment variables that need to be setup to run as a
cgi script?
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com