Failed: can't locate DBD/MySQL. PM Solution

Source: Internet
Author: User
Tags install perl
Install_driver (MySQL) failed: can't locate DBD/MySQL. pm IN @ INC (@ INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8/usr/lib/perl5/site_perl/usr/lib64/perl5/vendor_perl/5.8.8 /x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8
/Usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/5.8.8.) at (eval 7) Line 3.
Perhaps the DBD: MySQL Perl module hasn' t been fully installed,
Or perhaps the capitalization of 'mysql' isn' t right.
Available drivers: dBm, examplep, file, proxy, mongoge.
At bin/mysqlhotcopy line 177

Today, we have solved this problem by installing Perl-DBD-MySQL.
Yum install Perl-DBD-MySQL
...
Dependencies resolved

========================================================== ========================================================== ============================================
Package arch version repository size
========================================================== ========================================================== ============================================
Installing:
Perl-DBD-mysqlx86_64 3.0007-2. EL5 base 148 K

Transaction Summary
========================================================== ========================================================== ============================================
Install 1 package (s)
Upgrade 0 package (s)

Total download size: 148 K
Is this OK [Y/n]: Y
Downloading packages:
Perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm | 148 KB 00: 00
Running rpm_check_debug
Running transaction Test
Finished transaction Test
Transaction test succeeded
Running transaction
Installing: Perl-DBD-mysql 1/1

Installed:
Perl-DBD-MySQL.x86_64. 0007-2.el5

Complete!

Run it again. OK!

My mysql. Sock is under/tmp

Perform a soft connection ln-S/tmp/MySQL. Sock/var/lib/MySQL/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.