Forum Moderators: coopster & phranque

Message Too Old, No Replies

DBD Mysql Module

DBD Mysql Module

         

typomaniac

8:26 pm on Sep 16, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,
This involves a situation using xampp on a windows10 machine. I’m getting the following error when I try to access mysql.
Software error:
install_driver(mysql) failed: Can't load 'C:/xampp/perl/vendor/lib/auto/DBD/mysql/mysql.dll' for module DBD::mysql: load_file:The specified module could not be found at C:/xampp/perl/lib/DynaLoader.pm line 190.
at (eval 9) line 3.
Compilation failed in require at (eval 9) line 3.
Perhaps a required shared library or dll isn't installed where expected
at C:/xampp/cgi-bin/dir/script.pl line 418.

My connection line (line 418)was: my $dbh = DBI->connect('dbi:mysql:vssa:localhost','root','') or die('Couldnt connect');

I searched and the mysql.dll' was there as was the module DBD::mysql: but the one listed after that I could not find which is load_file. I looked on c-pan at the DBD::mysql module and found no load_file.

I know it probably isn’t a mysql problem because phpmyadmin loads up and I imported some sql files successfully through it.
In advance I give my thanks and hope I can get this going.

davebaker

12:32 am on Sep 19, 2015 (gmt 0)

10+ Year Member



Spotted something here -- [stackoverflow.com ]

typomaniac

5:26 am on Oct 12, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



Sorry for taking so long to reply on that one but have been sick with double barrel pneumonia, but, I did check that out. Its for installing strawberry perl. In the article they showed installing it into the DBD directory(tried that also when all else failed) instead of where it should go. Anyway, the problem seems to be with my pc. Will be going after that when I get better. Thanx. Your reply was much appreciated.