When I run the following Perl script on the xampp (for windows 11) command prompt:
#!C:xamppperlbinperl.exe print “Content-type: text/htmlnn”; use strict; use warnings; use DBI; my $db = DBI->connect(“DBI:mysql:database=count”, “root”, “”); die “failure” unless($db); print “connected”;
I get the following error:
install_driver(mysql) failed: Can’t load ‘C:/xampp/perl/vendor/lib/auto/DBD/mysql/mysql.xs.dll’ for module DBD::mysql: load_file:The specified module could not be found at C:/xampp/perl/lib/DynaLoader.pm line 193. at (eval 6) line 3. Compilation failed in require at (eval 6) line 3. Perhaps a required shared library or dll isn’t installed where expected at count.pl line 6.
mysql.xs.dll is at the indicated location.
user25154693 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.