Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: DBI::db error I am confused!

by Bod (Parson)
on Jan 03, 2021 at 21:50 UTC ( [id://11126242]=note: print w/replies, xml ) Need Help??


in reply to Re^2: DBI::db error I am confused!
in thread DBI::db error I am confused!

Can anyone give me a hint how to change the driver?

The driver is passed to DBI as the first part of the first parameter of the connect method:

use DBI; use DBD::mysql; my $dbh=DBI->connect("dbi:mysql:$database_schema:localhost:3306",$user +,$pass);
This is connecting to MySQL which also works for MariaDB. Although there is a DBD::MariaDB but I haven't switched to using it yet.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found