Mar 6, 2009, 9:13 AM
Post #2 of 3
Well, you have a problem with your perl installation. This problem should compile as written.
One thing I noticed is that most L/Unix systems put perl in /usr/lib/perl5. You may have put DBI there by mistake. How did you install DBI?
Also, once you get your DBI (and you will also need DBD::mysql) installation straightened out, the dsn in your connect statement is wrong. It should be:
$db = DBI->connect("DBI:mysql:database=$database;host=$hostname", $username, $password);