On Mon, Jun 25, 2001 at 12:02:05PM -0400, Stefan Antonowicz wrote:
> #!/usr/bin/perl -w
^^^^^^^^^^^^^
> [...]
> my $dbh = DBI->connect("DBI:mysql:$db:$host",$id,$pwd);
> [...]
> I get this error message:
> ******
> DBD::mysql initialisation failed: Can't locate object method "driver" via
> package "DBD::mysql" /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBI.pm line
> 526.
>
> Perhaps the capitalisation of DBD 'mysql' isn't right. at ./dbitest.pl line
> 11
> *****
> This is pissing me off to no end, because when I run:
> perl -MDBI -e 'print join("\n",DBI->available_drivers) . "\n";'
^^^^
>
> it kicks back this list:
> ADO
> ExampleP
> Multiplex
> Proxy
> mysql
Are you sure that /usr/bin/perl is the first perl in your path? Maybe you
have two different installations of perl.
`which perl`
Ronald