Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: MySQL/MariaDB DBD install problem

by Marshall (Canon)
on Sep 16, 2024 at 16:41 UTC ( [id://11161774]=note: print w/replies, xml ) Need Help??


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".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11161774]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2026-03-16 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.