[mythtv-commits] Ticket #13077: mythconverg_backup.pl strange behavior when using IPV6 for database
MythTV
noreply at mythtv.org
Thu Aug 3 23:11:34 UTC 2017
#13077: mythconverg_backup.pl strange behavior when using IPV6 for database
----------------------------------------+---------------------------
Reporter: pbennett | Owner: pbennett
Type: Bug Report - General | Status: assigned
Priority: minor | Milestone: 29.1
Component: Contributed Scripts & Apps | Version: v29-fixes
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------------+---------------------------
Comment (by natanojl):
It seems the regular expression in mysql.pm might be a bit too simple.
Switching the order of database and host allows the IPv6 address to be
parsed correctly.
{{{
diff --git a/mythtv/programs/scripts/database/mythconverg_backup.pl
b/mythtv/programs/scripts/database/mythconverg_backup.pl
index 6b3d0eb13c..efc3a58470 100755
--- a/mythtv/programs/scripts/database/mythconverg_backup.pl
+++ b/mythtv/programs/scripts/database/mythconverg_backup.pl
@@ -701,8 +701,8 @@ EOF
my $have_database_libs = check_database_libs;
return 0 if ($have_database_libs < 2);
$dbh = DBI->connect("dbi:mysql:".
- "database=$mysql_conf{'db_name'}:".
- "host=$mysql_conf{'db_host'}",
+ "host=$mysql_conf{'db_host'}:".
+ "database=$mysql_conf{'db_name'}",
"$mysql_conf{'db_user'}",
"$mysql_conf{'db_pass'}",
{ PrintError => 0 });
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13077#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list