Skip to content
Permalink
Browse files

Allow custom db port

  • Loading branch information...
Sean Pearce
Sean Pearce committed Jan 3, 2019
1 parent 5408005 commit 79a51773b7a0caa1c978028c7622e806b29255e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 dmarcts-report-parser.pl
@@ -115,7 +115,7 @@ sub show_usage {

# Define all possible configuration options.
our ($debug, $delete_reports, $delete_failed, $reports_replace, $maxsize_xml, $compress_xml,
$dbname, $dbuser, $dbpass, $dbhost,
$dbname, $dbuser, $dbpass, $dbhost, $dbport,
$imapserver, $imapuser, $imappass, $imapignoreerror, $imapssl, $imaptls, $imapmovefolder, $imapreadfolder, $imapopt, $tlsverify);

# defaults
@@ -207,7 +207,7 @@ sub show_usage {


# Setup connection to database server.
my $dbh = DBI->connect("DBI:mysql:database=$dbname;host=$dbhost",
my $dbh = DBI->connect("DBI:mysql:database=$dbname;host=$dbhost;port=$dbport",
$dbuser, $dbpass)
or die "Cannot connect to database\n";
checkDatabase($dbh);

0 comments on commit 79a5177

Please sign in to comment.
You can’t perform that action at this time.