9 messages in com.mysql.lists.perlDBD::MySQL okay from telnet, fails fr...
FromSent OnAttachments
Jeremy E Cath26 Aug 2001 20:55 
Simon Oliver27 Aug 2001 02:10 
Rajeev Rumale29 Aug 2001 20:50 
Steve Howard01 Sep 2001 07:57 
Robert Goff01 Sep 2001 08:18 
Rajeev Rumale02 Sep 2001 19:17 
Rajeev Rumale02 Sep 2001 19:21 
Steve Howard02 Sep 2001 21:10 
wshe...@lexmark.com04 Sep 2001 06:24 
Subject:DBD::MySQL okay from telnet, fails from http
From:Jeremy E Cath (jer@rufan-redi.com)
Date:08/26/2001 08:55:09 PM
List:com.mysql.lists.perl

Weird plea for help...

Have installed DBI and DBD::mysql using CPAN on a RedHat 6.2 build, with a working MySQL implementation, and all appears to go well...

If I create and save as test.cgi (into the web servers cgi-bin directory) #!/usr/bin/perl use DBI; my $quiet = 1; my @drivers = DBI->available_drivers($quiet); print "Available Drivers:\n"; for(@drivers) { print "$_\n"; } print "Done\n";

from a telnet prompt as "perl test.cgi" I get a list of drivers including mysql, and database queries etc work.

I then run exactly the same script from a web browser as url/cgi-bin/test.cgi, expecting the same list of drivers, but... only get the basic drivers - no mysql listed, although a new one "Pg" appears in the list

If anyone has any suggestions they'd be gratefully received - please instruct for a newbie... have usually used pre-configured virtual servers.. first time I've had my own to worrk about !