The DBD::mysql perl module can no longer be found by my code

  • Answered
Maybe 4 weeks ago my site perl code stopped working. Perl can no longer find the DBD::mysql perl module. The site has been working correctly for years and no changes were made.

I have tried repeatedly to install the DBD module in cPanel but the installation fails when the dependent DBI package fails to install correctly with the error:

Successfully installed DBI-1.632
! Installing the dependencies failed: Module 'DBI' is not installed
! Bailing out the installation for DBD-mysql-4.028. Retry with --prompt or --force.
1 distribution installed
Perl Expect failed with non-zero exit status: 256

Here is the error returned by perl when trying to load the missing module:

install_driver(Mysql) failed: Can't locate DBD/ in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8 .) at (eval 4) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'Mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
at myCode.cgi line 31

Hello, Apologies for the problems with the issues with MYSQL PERL module. We are looking into the issue and we will get back to you shortly. Issues of this nature should be addressed directly with the live technical support team. You will receive a response directly through your account's email after the issue has been investigated. Regards, Arnel C.