[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7965
  • Last Modified:

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

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
rayskelton
Asked:
rayskelton
  • 3
  • 2
1 Solution
 
SqueebeeCommented:
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
 
rayskeltonAuthor Commented:
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
 
SqueebeeCommented:
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
 
rayskeltonAuthor Commented:
Thanks for the info. What is DBD::MySQL?
0
 
SqueebeeCommented:
It is a module for Perl that gives Perl programmers access to MySQL. Think JDBC for Perl.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now