If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Can't locate DBD/mysql.pm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-04, 08:23
davefish66 davefish66 is offline
Registered User
 
Join Date: Dec 2004
Location: Michigan
Posts: 2
Can't locate DBD/mysql.pm

Looking for help - I have MySQL 4.0.18 (W2K box) and Active State Perl 5.6 running. DBI and DBD are installed. Stand alone perl scripts run fine against my DB. I have started into developing a web interface, so I am attempting to use my Sambar web server (on same box) to work with the MySQL data. I am getting this message:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: .. d:/Perl/lib d:/Perl/site/lib .)


I have tried including ;host=localhost in the DBI call and also tried adding @localhost to the user.

I am guessing the web server is not set up as a valid user - even though the user name and password I am passing in the cgi are the same as the ones that work fine for the stand alone scripts. Also - this development web server has worked fine with perl and DBD against a Sybase DB through ODBC.

Any ideas? I have found some stuff on the MySQL site - but mostly about getting DBD/DBI working -- which should be fine on my machine. Or scary stuff like compiling my own custom version of perl ...

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-10-04, 10:50
davefish66 davefish66 is offline
Registered User
 
Join Date: Dec 2004
Location: Michigan
Posts: 2
Never mind ...

Figured it out - Sambar only talks to DB sources through ODBC. So I installed the MySQL ODBC drivers, made an entry and BANG worked like a charm.

Good thing my real system is heading for a Linux box running Apache ... (not that I have anything against ODBC)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On