Solved

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

Posted on 2003-11-16
5
7,864 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now