HostOnNet Blog

Cpanel Error – Can’t locate DBD/

On restoring a site on cpanel server, got following error

Error while connecting to MySQL. Failover enacted.
install_driver(mysql) failed: Can’t locate DBD/ in @INC
(@INC contains: /usr/lib/perl5/5.8.7/i686-linux
/usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-
linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5
/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/
5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5
/site_perl/5.8.0 /usr/lib/perl5/site_perl .
/scripts /scripts /scripts /scripts /scripts
/scripts /scripts /scripts) at (eval 32) line 3.
Perhaps the DBD::mysql perl module hasn’t
been fully installed,

The problem is due to Perl module DBD::mysql mising.

This can be downloaded from

To install it, unzip it, then cd to the source folder, then run

# perl
# make
# make install

Posted in Cpanel Server. Bookmark the permalink.