Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
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 …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

691 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