Phemur has asked for the wisdom of the Perl Monks concerning the following question:
The error found in error_log is:#!/usr/bin/perl -w use DBI; #connect to DB $dbHandle = DBI->connect('DBI:mysql:mydb','ID','pw');
The user name and password are valid for the database, since everything works fine if I run the script from the command line. It only fails when I run it through CGI.DBI->connect(ID) failed: Access denied for user: 'ID@localhost' (Using password: YES) at /home/user/website/cgi-bin/script.pl line 33
Any help would be greatly appreciated. Thanks.
Phemur
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI connection through CGI
by DigitalKitty (Parson) on May 20, 2002 at 20:36 UTC | |
by Phemur (Beadle) on May 20, 2002 at 21:30 UTC | |
|
Re: DBI connection through CGI
by cLive ;-) (Prior) on May 20, 2002 at 22:46 UTC | |
|
Re: DBI connection through CGI
by virtualsue (Vicar) on May 20, 2002 at 21:35 UTC | |
by Phemur (Beadle) on May 20, 2002 at 22:26 UTC | |
by cLive ;-) (Prior) on May 20, 2002 at 22:52 UTC | |
by Phemur (Beadle) on May 21, 2002 at 12:16 UTC | |
by dsheroh (Monsignor) on May 21, 2002 at 14:47 UTC |