in reply to MySQL/MariaDB DBD install problem

Please show your code for connecting to the DB. Should be something like this for mysql:
use strict; use warnings; use DBI; $dbh = DBI->connect('DBI:mysql:databasename', 'username', 'password' ) || die "Could not connect to database: $DBI::errstr";

Replies are listed 'Best First'.
Re^2: MySQL/MariaDB DBD install problem
by ABayko (Novice) on Sep 23, 2024 at 22:23 UTC
    My code is pretty much identical to the code you posted. I get the message that either "mysql" is spelled wrong or the capitalization is incorrect or the DBD::mysql module is not installed. Checking the installed modules with instmodsh.bat, it shows the DBD::mysql module is not installed. When I attempt to install the module using CPAN, I see the error that the makefile.pl does not find the file "mysql.h".