4 messages in com.mysql.lists.perlRe: works fine on command line and fa...
FromSent OnAttachments
Aman Raheja17 Nov 2004 12:36 
jose isaias cabrera17 Nov 2004 12:50 
Glenn Fleishman17 Nov 2004 13:55 
Peter Pentchev18 Nov 2004 00:01 
Subject:Re: works fine on command line and fails through apache
From:Peter Pentchev (ro@ringlet.net)
Date:11/18/2004 12:01:24 AM
List:com.mysql.lists.perl

On Wed, Nov 17, 2004 at 02:37:14PM -0600, Aman Raheja wrote:

I am simply connecting to a mysql db and using the same piece of code. While it connects if I run the code on command line, it fails if I access the same piece of through a web browser.

Env Fedora Core 3 (kernel 2.6.9-1.667) httpd-2.0.52-3 (apache) mysql-3.23.58-13 perl-DBI-1.40-5 perl-DBD-MySQL-2.9003-5

Anyone seen such behavious?

Do you have any settings stored in the ~/.my.cnf directory? Or, by chance, any settings stored in the .my.cnf file in the home directory of the user that your web application/script runs as?

G'luck, Peter