in reply to Re: DBI lost connection
in thread DBI lost connection
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI lost connection
by marto (Cardinal) on Mar 05, 2020 at 11:42 UTC |