Skip to content
Snippets Groups Projects
Commit abbf07a9 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

zapnut MySQL autoreconnect

parent 7be55ec8
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ our $VERSION = "2.0"; ...@@ -27,7 +27,7 @@ our $VERSION = "2.0";
# READING OF CONFIGURATION VARIABLES # READING OF CONFIGURATION VARIABLES
################################################################################ ################################################################################
my $conf_file = "/opt/warden-server/etc/warden-server.conf"; my $conf_file = "/opt/warden-server-2/etc/warden-server.conf";
our $FACILITY = undef; our $FACILITY = undef;
our $DB_NAME = undef; our $DB_NAME = undef;
our $DB_USER = undef; our $DB_USER = undef;
...@@ -50,7 +50,7 @@ if (!do $conf_file) { ...@@ -50,7 +50,7 @@ if (!do $conf_file) {
# VARIABLES # VARIABLES
################################################################################ ################################################################################
our $DBH = DBI->connect("DBI:mysql:database=$DB_NAME;host=$DB_HOST", $DB_USER, $DB_PASS, {RaiseError => 1, mysql_auto_reconnect => 0}) || die "Could not connect to database: $DBI::errstr"; our $DBH = DBI->connect("DBI:mysql:database=$DB_NAME;host=$DB_HOST", $DB_USER, $DB_PASS, {RaiseError => 1, mysql_auto_reconnect => 1}) || die "Could not connect to database: $DBI::errstr";
################################################################################ ################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment