Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > CoderForums - Programming Discussion > General Programming Issues > Programming Languages & Technologies > PHP

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-01-2002, 05:11 PM
CCShadow CCShadow is offline
Registered User
 
Join Date: Mar 2002
Posts: 1
Warning! MySQL and Perl

I am currently trying to get MySQL working in a Perl script. I have included the DBI library, and I use the code below. When I run the script, I recieve the following error. Any help would be appreciated.

$DB="DBI:mysql:<MY DATABASE>:localhost";

$dbh = DBI->connect($DB,"<MY USERNAME>","<MY PASSWORD>");

-------------------------------------------------------------

Content-type: text/html

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ADO, ExampleP, Multiplex, Proxy.
Reply With Quote
  #2  
Old 03-03-2002, 08:57 AM
snapper snapper is offline
Registered User
 
Join Date: Mar 2002
Posts: 18
DBD/mysql.pm is not installed by default

Submit a TT and ask for DBD\mysql.pm to be installed.


Regards...

Last edited by snapper; 03-03-2002 at 09:10 AM.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump