Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2003-11-16
5
Medium Priority
?
7,946 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 total points
ID: 9764346
It is a module for Perl that gives Perl programmers access to MySQL. Think JDBC for Perl.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

636 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