works fine on command line and fails through apache

works fine on command line and fails through apache

am 17.11.2004 21:37:14 von Aman Raheja

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?
Thanks
Aman

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: works fine on command line and fails through apache

am 17.11.2004 21:50:45 von jose isaias cabrera

Perhaps if you show us your code for both environments, we could see
something...


----- Original Message -----
From: "Aman Raheja"
To:
Sent: Wednesday, November 17, 2004 3:37 PM
Subject: works fine on command line and fails through apache


> 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?
> Thanks
> Aman
>
> --
> MySQL Perl Mailing List
> For list archives: http://lists.mysql.com/perl
> To unsubscribe:
http://lists.mysql.com/perl?unsub=jicman@cinops.xerox.com
>
>


--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org

Re: works fine on command line and fails through apache

am 17.11.2004 22:56:21 von Glenn Fleishman

>----- Original Message -----
>From: "Aman Raheja"
>> 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.

Is the same machine that you are running the code on also running the
MySQL server? If so,=20
--
Glenn Fleishman
seattle, washington
work and home: glennf.com
wireless data news: wifinetnews.com

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules @m.gmane.org

Re: works fine on command line and fails through apache

am 18.11.2004 09:01:46 von Peter Pentchev

--0ntfKIWw70PvrIHh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> access the same piece of through a web browser.
>=20
> 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
>=20
>=20
> 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

--=20
Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
What would this sentence be like if it weren't self-referential?

--0ntfKIWw70PvrIHh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBnFbp7Ri2jRYZRVMRApYcAJ9iCjh+zyG7bMT1X4jWRkhnb6REegCe LmNR
0lrdzcYq8JAG7V9lyfA/hPM=
=6yGW
-----END PGP SIGNATURE-----

--0ntfKIWw70PvrIHh--