summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-01-22 15:49:22 +0100
committerbbaetz%student.usyd.edu.au <>2002-01-22 15:49:22 +0100
commit8e2dfa5ab6404088b65f14b0e3f39362a0b5967d (patch)
tree1811a36ac682ab7a0aa58162f547e2b81d5d8287 /globals.pl
parent35db91c243e1ce1ea84839baea0561c7335259c6 (diff)
downloadbugzilla-8e2dfa5ab6404088b65f14b0e3f39362a0b5967d.tar.gz
bugzilla-8e2dfa5ab6404088b65f14b0e3f39362a0b5967d.tar.xz
Bug 98368 - dbi connect doesn't use db_port option.
Patch by gene.stuckey@tellabs.com, r=bbaetz,justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 36e1f86f1..37ecdafbe 100644
--- a/globals.pl
+++ b/globals.pl
@@ -61,6 +61,7 @@ sub globals_pl_sillyness {
#
$::db_host = "localhost";
+$::db_port = 3306;
$::db_name = "bugs";
$::db_user = "bugs";
$::db_pass = "";
@@ -105,7 +106,7 @@ sub ConnectToDatabase {
$name = Param("shadowdb");
$::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. " .
"If the problem persists, please contact " . Param("maintainer") .
". The error you should quote is: " . $DBI::errstr;