Advertisement

02.23.2008 at 06:33PM PST, ID: 23187907
[x]
Attachment Details

Windows XP ActivePerl 5.10 MySQL database connectivity

Asked by koudry in Perl Programming Language, CGI Scripting, MySQL

Tags: Apache, ActivePerl, 5.10, Connecting to MySQL v5 database

Dear colleagues,

I am running ActivePerl v5.10 on Windows XP Pro. I have been trying to connect to MySQL v5 with no success.  I have been getting the following error:

-----------
perl dbconnect3.pl
install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at (eval 4) line 3
Compilation failed in require at (eval 4) line 3.
Perhaps a module that DBD::mysql requires hasn't been fully installed
 at dbconnect3.pl line 5
-------------

Below is the script: dbconnect3.pl
-----
#!/usr/bin/perl -w
use DBI;
my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost", "root", "pwd", {'RaiseError' => 1});
-----

I have successfully installed the DBI module (DBI-1.602) which I have downloaded from the internet.  I have also downloaded the DBD module (DBD-mysql-4.006) from the internet.  However when I tried to installed the dbd module, I got the a message that the package was up-to-date.

The problem is that, I can't seem to figure out why the dbd::mysql driver cannot be loaded.  I have spent some considerable time on the problem so if anyone can help, I will be grateful.

Many thanks in advance.

Richard Koudry

Start Free Trial
[+][-]02.23.2008 at 08:19PM PST, ID: 20968532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.23.2008 at 09:44PM PST, ID: 20968873

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, CGI Scripting, MySQL
Tags: Apache, ActivePerl, 5.10, Connecting to MySQL v5 database
Sign Up Now!
Solution Provided By: clockwatcher
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.24.2008 at 11:34AM PST, ID: 20970983

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:23AM PST, ID: 20976143

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:33AM PST, ID: 20976256

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 07:47AM PST, ID: 20976419

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 08:02AM PST, ID: 20976590

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2008 at 09:01AM PST, ID: 20977147

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628