[Handel] mp1 database connectivity
trwww at sbcglobal.net
Thu May 4 22:15:52 CEST 2006
From: "Christopher H. Laco" <claco at chrislaco.com>
> I'm at a loss on this one. I'm running perl 5.6.4, Cat 5.68, Apache
> 1.3.33, Handel 0.32, and MP 1.29.
> I used the httpd.conf supplied in the original email. It loads and runs,
> and when I add to cart, I get this:
> Caught exception in FundRaiser::Controller::Cart->begin "DBI
> connect('dbname=handel','handeluser',...) failed: Can't connect to
> MySQL server on 'localhost' (10061) at
> C:/Development/Perl/584/site/lib/Ima/DBI.pm line 316"
Yep. It looks like your setup is doing the right thing. You can even try to
run it if you want, that database is accessible with that username and
password at waveright.homeip.net.
> Since that's different from the original:
>> Caught exception in FundRaiser::Controller::Cart->begin "Can't connect to
>> data source dbname=, no database driver specified and DBI_DSN env var not
>> set at /usr/local/lib/perl5/site_perl/5.8.7/Ima/DBI.pm line 316"
> I'm going to assume it would work, as-is, if I actually had MYSql
> running on localhost.
> So, of course, I can't seem to reproduce this.
> What version of CDBI/IMA::DBI/DBI are you running?
$ perl -MHandel -e 'print "$Handel::VERSION\n"';
$ perl -MCatalyst -e 'print "$Catalyst::VERSION\n"';
$ perl -MClass::DBI -e 'print "$Class::DBI::VERSION\n"';
$ perl -MIma::DBI -e 'print "$Ima::DBI::VERSION\n"';
$ perl -MDBI -e 'print "$DBI::VERSION\n"';
$ perl -MApache -e 'print "$Apache::VERSION\n"';
$ perl -v
This is perl, v5.8.7 built for i686-linux
$ /usr/local/apache/bin/httpd -v
Server version: Apache/1.3.33 (Unix)
$ uname -a
Linux waveright.homeip.net 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686
i686 i386 GNU/Linux
I won't be able to work on this any more until Saturday, but I'll definitely
keep you updated.
More information about the Handel