Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: DBI lost connection

by marto (Cardinal)
on Mar 05, 2020 at 11:34 UTC ( [id://11113842]=note: print w/replies, xml ) Need Help??


in reply to DBI lost connection

Are you using DBD::mysql or DBD::MariaDB? IIRC there was an issue with the former that was resolved in the latter.

Replies are listed 'Best First'.
Re^2: DBI lost connection
by luxs (Beadle) on Mar 05, 2020 at 11:36 UTC
    use DBI; my $dbh = DBI->connect( "DBI:mysql:database=".$config->{'mysql'}->{$db +}->{'d'}.";host=".$config->{'mysql'}->{$db}->{'h'}, $config->{'mysql'}->{$db}->{'u'}, $config->{'mysql'}->{$db}->{'p'}); $dbh->{'mysql_enable_utf8'} = 1; $dbh->do("SET NAMES 'utf8'"); $dbh->{mysql_auto_reconnect} = 1;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found