mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Bug 98368 - dbi connect doesn't use db_port option.
Patch by gene.stuckey@tellabs.com, r=bbaetz,justdave
This commit is contained in:
parent
8ae6cad12a
commit
ab40697509
@ -61,6 +61,7 @@ sub globals_pl_sillyness {
|
|||||||
#
|
#
|
||||||
|
|
||||||
$::db_host = "localhost";
|
$::db_host = "localhost";
|
||||||
|
$::db_port = 3306;
|
||||||
$::db_name = "bugs";
|
$::db_name = "bugs";
|
||||||
$::db_user = "bugs";
|
$::db_user = "bugs";
|
||||||
$::db_pass = "";
|
$::db_pass = "";
|
||||||
@ -105,7 +106,7 @@ sub ConnectToDatabase {
|
|||||||
$name = Param("shadowdb");
|
$name = Param("shadowdb");
|
||||||
$::dbwritesallowed = 0;
|
$::dbwritesallowed = 0;
|
||||||
}
|
}
|
||||||
$::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name", $::db_user, $::db_pass)
|
$::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name;port=$::db_port", $::db_user, $::db_pass)
|
||||||
|| die "Bugzilla is currently broken. Please try again later. " .
|
|| die "Bugzilla is currently broken. Please try again later. " .
|
||||||
"If the problem persists, please contact " . Param("maintainer") .
|
"If the problem persists, please contact " . Param("maintainer") .
|
||||||
". The error you should quote is: " . $DBI::errstr;
|
". The error you should quote is: " . $DBI::errstr;
|
||||||
|
Loading…
Reference in New Issue
Block a user