Script using DBI doesn't work after mysql upgrade

Posted by elbuscador on 2007-04-02 07:42
Forums: PPM | OS: Windows Server 2003

Hi everybody,
I have two simple scripts that worked beautifully up to the moment that I upgraded MySql from 3.23 to 4.1.22.

Neither data nor scripts have been changed

I assume that DBI/DBD-Mysql don't like the new version...?

I'm using Perl 5.8.7.,Build 815.

A script snippet:

use DBI;
$dbh = DBI->connect('DBI:mysql:mydatabank', 'myuser', 'mypassword');

The error message reads: "Can't locate object method connect via package DBI".

DBI and DBD-mysql are correctly installed.

Not even this works any more.

Any help would be greatly appreciated.
Many thanks!