fixed to include user/pass pair on socket connections

This commit is contained in:
Jordi Sanfeliu 2013-01-07 11:22:13 +01:00
parent de2925a828
commit 7f973b3372
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ sub mysql_update {
}
$dbh = DBI->connect(
"DBI:mysql:mysql_socket=$sock",
$user,
$pass,
{ PrintError => $print_error, }
) or logger("$myself: Cannot connect to MySQL '$sock'.") and next;
}