I'm running Perl 5.16 and when I attempt to run the following code:
(and yes I replaced the values for the database name, username and password) I get the following error message in the log file:
I thought it might be an install issue, but I'm not sure so I figured I better start asking before I screw things up.
Code:
#!/usr/bin/perl -w
use DBI;
$dbh = DBI->connect('dbi:mysql:DATABASENAME', 'USERNAME','PASSWORD');
Code:
[Sun Dec 01 18:55:09 2013] [error] [client xx.xx.xxxx.107] install_driver(mysql) failed: Can't locate
DBD/mysql.pm in @INC (@INC contains: /usr/local/lib/perl5/5.16/BSDPAN /usr/local/lib/perl5/site_perl/
5.16/mach /usr/local/lib/perl5/site_perl/5.16 /usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.1
6 .) at (eval 6) line 3.
I thought it might be an install issue, but I'm not sure so I figured I better start asking before I screw things up.