Permalink
Browse files

Added mysql_auto_reconnect

  • Loading branch information...
1 parent 9ab9dfe commit 818131f8eed0b7c3b2051c91e79e534cf2c6f74a gamelinux committed Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/pdns2db.pl
View
@@ -163,7 +163,7 @@ =head1 SYNOPSIS
if ($NODB == 0) {
warn "[*] Connecting to database...\n";
- $dbh = DBI->connect($DBI,$DB_USERNAME,$DB_PASSWORD, {RaiseError => 1}) or die "$DBI::errstr";
+ $dbh = DBI->connect($DBI,$DB_USERNAME,$DB_PASSWORD, {RaiseError => 1, mysql_auto_reconnect=>1}) or die "$DBI::errstr";
# Setup the pdns table, if not exist
setup_db();
} else {

0 comments on commit 818131f

Please sign in to comment.