You can still use DBI->trace(2, "trace.log");

and send in the file if you can't figure it out on your own.

It has to do with the environment, since the browser logs in as user nobody
or www, thefore you must make sure that these user types also have the same
environment set up for them.

Ilya

-----Original Message-----
From: Ian Feldberg
To: [EMAIL PROTECTED]
Sent: 9/6/01 10:16 AM
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?

Reply via email to