Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: DBD::mysql and MariaDB

by 7stud (Deacon)
on Feb 08, 2018 at 07:03 UTC ( [id://1208686]=note: print w/replies, xml ) Need Help??


in reply to DBD::mysql and MariaDB

Okay! The DBD::MariaDB worked. Here is the necessary line:
my $dsn = 'DBI:MariaDB:database=my_db;host=localhost'; my $dbh = DBI->connect($dsn, 'root', '');
The capitalization of "MariaDB" is required and "mysql" doesn't work.
After unzipping DBD-MariaDB-master.zip, I did a standard install from source:
$ cd DBD-MariaDB-master $ perl Makefile.PL $ make $ make test $ make install

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-28 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found