List:MySQL and Perl« Previous MessageNext Message »
From:¿µ¿ì Date:April 6 2004 4:09am
Subject:Can't locate object method "connect" via package "DBI"
View as plain text  
Hi all...
I am getting this error message.. 
I dont know how I solve this problem. help me please
 
When I go to webpage I get following CGI error
------ Error message ------
Can't locate object method "connect" via package "DBI" at
/home/moonbw/public_html/mt/lib/MT/ObjectDriver/DBI/mysql.pm line 48.
--------------------------
 
 
mysql.pm line 48 is below
 
41>sub init {
42>    my $driver = shift;
43>    $driver->SUPER::init(@_);
44>    my $cfg = $driver->cfg;
45>    my $dsn = 'dbi:mysql:database=' . $cfg->Database;
46>   $dsn .= ';hostname=' . $cfg->DBHost if $cfg->DBHost;
47>    $dsn .= ';mysql_socket=' . $cfg->DBSocket if $cfg->DBSocket;
48>    $driver->{dbh} = DBI->connect($dsn, $cfg->DBUser, $cfg->DBPassword,
49>        { RaiseError => 0, PrintError => 0 })
50>        or return $driver->error(MT->translate("Connection error: [_1]",
51>             $DBI::errstr));
52>    $driver;
53>}
 
what's the matter?
 

Attachment: [text/html]
Attachment: [text/html]
Attachment: [text/html]
Thread
Can't locate object method "connect" via package "DBI"¿µ¿ì6 Apr
Re: Can't locate object method "connect" via package "DBI"Garth Webb6 Apr