List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:July 12 1999 7:46pm
Subject:Re: connection error
View as plain text  
Phil wrote:
> 
> Hello.
>     I am running freebsd 2.2.7 and Mysql mysql-3.22.23b.
> what does this error mean??
> 
> # ./test-connect
> Can't locate object method "connect" via package "DBI" at
> /home/.MySQL/sql-bench
> /server-cfg line 191.
> 
> here is the routine from server-cfg that contains line 191;
> 
> sub connect
> {
>   my ($self)=@_;
>  my ($dbh);
>   $dbh=DBI->connect($self->{'data_source'}, $main::opt_user,
>                     $main::opt_password,{ PrintError => 0}) ||
>                       die "Got error: '$DBI::errstr' when connecting to
> " . $sel
> 
>   $dbh->do("SET OPTION LOG_OFF=1,UPDATE_LOG=0");
>   return $dbh;
> }
> 
> How can I fix this???
> 
> Phil
> 

Looks like you have a corrupt installation of DBI. Re-install it
properly and make sure to run make test before you do make install.

-- 
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
Thread
connection errorPhil12 Jul
  • Re: connection errorSasha Pachev12 Jul