Solved

failed: Can't locate DBD/mysql.pm in @INC

Posted on 2003-11-16
5
7,879 Views
Last Modified: 2007-12-19
I am on a Linux Redhat ver 7.3 box and have install mySql version 4.0.16. I started the daemon under the userid mysql and the daemons apperar to be runnung with a ps. I went to validate the database with './sql-bench/perl run-all-tests and get the following error. What is the error telling me and how do i recover from this error?
-----------------------
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at (eval 51) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Pg, Proxy.
 at /usr/local/mysql-4.0.16/sql-bench/server-cfg line 240
----------------------------
0
Comment
Question by:rayskelton
  • 3
  • 2
5 Comments
 
LVL 17

Expert Comment

by:Squeebee
ID: 9760321
The error means that Perl is not properly configured to access MySQL. If you plan to use Perl, this will be a problem. If not, the worst effect is that you cannot run sql-bench. This does not indicate a problem with the copy of MySQL you installed.

If you know how to use CPAN, you could install DBD::mysql from there. Most MySQL installations, especially binary ones, are quite stable and if you are using this installation for development and don't need Perl the error can probably be safely ignored.
0
 

Author Comment

by:rayskelton
ID: 9760693
I plan on mirroring some current work from an Oracle database and use Java JDBC driver to connect to mySql. I want to create some of my work tables, so I can do much of my development at home and at work by changing the driver name in the connection class. I am fluent in Oracle, but want to make mySql work like Oracle for my development purposes. With this in mind what is DBD::mysql and will I need it for my purpose. I can ping the database and create tables.
0
 
LVL 17

Expert Comment

by:Squeebee
ID: 9760862
You do not need DBD::MySQL to develop in JDBC.

THat being said, you may want to check out PostgreSQL for your purposes, as it behaves a little closer to Oracle in regards to views, triggers, subselects, and stored procedures. If you do not need the aforementioned then MySQL should be fine.

www.postgresql.org
0
 

Author Comment

by:rayskelton
ID: 9763762
Thanks for the info. What is DBD::MySQL?
0
 
LVL 17

Accepted Solution

by:
Squeebee earned 250 total points
ID: 9764346
It is a module for Perl that gives Perl programmers access to MySQL. Think JDBC for Perl.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question