On Thu, 5 Apr 2001, Alec Smith wrote:
> In my module I've got:
>
> use DBI;
> use Apache::DBI;
> $db = DBI->connect('DBI:mysql:dbname', 'username', 'password', {RaiseError
> => 1, AutoCommit => 1});
Have a read of the Apache::DBI man page and it will explain what is wrong
here.
You don't need
In my module I've got:
use DBI;
use Apache::DBI;
$db = DBI->connect('DBI:mysql:dbname', 'username', 'password', {RaiseError
=> 1, AutoCommit => 1});
and in startup.pl:
use DBI;
use Apache::DBI;
Apache::DBI->connect_on_init('DBI:mysql:dbname', 'username',
'password',{RaiseError => 1, AutoCommi
of WebZavod http://www.webzavod.ru
Tel. +7 (8462) 43-93-85 | +7 (8462) 43-93-86
mailto:[EMAIL PROTECTED]
- Original Message -
From: "Tim Bunce" <[EMAIL PROTECTED]>
To: "Alec Smith" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 12
Similar problem here but not quite
First time now I want to use a database handler more persistent.
Not yet by using Apache::DBI but in a global $DBH
Shouldn't this just work?
I did not put Apache::DBI in startup file
I also tried code outside handler and I tried server restarts.
I always
You would only get that message if AutoCommit was off.
It should not be off for DBD::mysql (since it doesn't yet support
the transaction features of newer versions).
Plus, disconnect doesn't do anything when using Apache::DBI
(by design).
Tim.
On Wed, Apr 04, 2001 at 11:49:17PM -0400, Alec Smit
I had some similar problem before. It was caused by the "PerlFreshRestart
on". Comment this line out and see what happens.
Jason
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Edmar Edilton da Silva
> Sent: Thursday, November 23, 2000 5:40 AM
Edmar Edilton da Silva wrote:
>
> Hi all,
>
> I am sending again the previous message because I still didn't know how
>
> to resolve the below problem. Can anyone any idea how help me?
>
> I have installed on the my machine the following modules:
> apache 1.3.12-2
> perl-5.00503-10
Hi,
I added the code folow in the config file, but the Apache ::DBI
module continue don't working. If I don't load the Apache::DBI module,
the apache works correctly. Using only the DBI and DBD::Oracle modules,
I can access the Oracle database no problems. Really the problem must be
in the
> #!/usr/bin/perl
>
> use strict;
>
> # Extend @INC if needed
> use lib qw(/dir/foo /dir/bar);
# ok, setup the Oracle and (optionally) the debug DBI environment
BEGIN {
$ENV{'ORACLE_HOME'}='/highway/to/orac/hell';
$ENV{DBI_TRACE}="3=/var/tmp/dbitrace.log";
}
>
> # Make sure we are in
Sorry, but I forgot, I also have installed a DBD module for the
Oracle ( the "DBD::Oracle" ). Do you have any idea to resolve this
problem?
Thanks,
Sapphire Software wrote:
> Hello
>
> Don't you need a DBD module?
>
> Or did I miss something?
>
> Ruben
>
> ---
Hello
Don't you need a DBD module?
Or did I miss something?
Ruben
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Rob,
I am not ruling out the chances of daemon process incorrectly parsing httpd.conf.
However, there is very remote chances of this kind of problems. I would also like to
tell you that all my modules except Apache::DBI is getting preloaded. So, I think the
problem lies in Apache::DBI and
Hi Rob,
I am not ruling out the chances of daemon process incorrectly parsing httpd.conf.
However, there is very remote chances of this kind of problems. I would also like to
tell you that all my modules except Apache::DBI is getting preloaded. So, I think the
problem lies in Apache::DBI and
Hi Ken,
There is neither any error message generated in the error_log neither on linux prompt.
Thanks for writing,
Pritesh.
On Friday, October 13, 2000 at 01:30:50 AM, Ken Williams wrote:
> [EMAIL PROTECTED] (Pritesh Thakor) wrote:
> >I installed Apache::DBI-0.87 on Apache 1.3.9,
Andrew,
I gave the command when I login as a root. The real problem is all other modules
except Apache::DBI gets preloaded. So, I think there is something wrong with
Apache::DBI or there has to be some kind of version conflict.
Thanks for the reply,
Pritesh.
On Friday, October 13,
Yes. I am giving this command while login as root. Other modules gets loaded properly,
but I encounter problem while loading Apache::DBI.
Thanks,
Pritesh.
On Friday, October 13, 2000 at 09:03:22 AM, [EMAIL PROTECTED] wrote:
> Are you running httpd restart with a user that has the pr
Did you check to see that the server was still up. It is possible it
crashed just after the "OK" was displayed on the screen. From the
traces I've done when I've encountered similar problems, the server
parses httpd.conf once to check for errors and then forks off a daemon
copy of itself. T
[EMAIL PROTECTED] (Pritesh Thakor) wrote:
>I installed Apache::DBI-0.87 on Apache 1.3.9, Perl 5.00503, mod_perl
>1.2.1 running on RedHat Linux 6.1 and I am trying to connect to MySQL
>3.22.32. After making necessary changes in httpd.conf i.e. PerlModule
>Apache::DBI and giving the command
>
>/etc/
Apache::DBI and DBI are different packages - Apache::DBI requires DBI to
function.
thus, you still need to include the use DBI pragma.
HTH
--Geoff
> -Original Message-
> From: Michael Baxter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 06, 2000 4:17 AM
> To: [EMAIL PROTECTED]
>
19 matches
Mail list logo