Closed
Bug 100778
Opened 24 years ago
Closed 24 years ago
Doesn't work with MySql running on non default socket and port
Categories
(Bugzilla :: Bugzilla-General, defect, P1)
Tracking
()
People
(Reporter: stefan, Assigned: justdave)
Details
If the MySql server bugzilla is using is not on the standard socket and port
the connection from globals.pl will fail because the port from localconfig is
not passed to DBI->connect() event if it is passed in checksetup.pl
If would also be nice to be able to use the socket interface by specifying
an alternate socket.
(Sorry for the messy diff, no attachments on this page?)
*** globals.pl~ Wed Apr 25 18:45:27 2001
--- globals.pl Thu Sep 20 20:36:26 2001
***************
*** 59,64 ****
--- 59,65 ----
$::db_name = "bugs";
$::db_user = "bugs";
$::db_pass = "";
+ $::db_port = 3306;
do 'localconfig';
***************
*** 90,96 ****
$name = Param("shadowdb");
$::dbwritesallowed = 0;
}
! $::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name", $::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;
--- 91,97 ----
$name = Param("shadowdb");
$::dbwritesallowed = 0;
}
! $::db =
DBI->connect("DBI:mysql:host=$::db_host;port=$::db_port;database=$name",
$::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;
Updated•24 years ago
|
Severity: normal → critical
Priority: -- → P2
Updated•24 years ago
|
Target Milestone: --- → Bugzilla 2.16
Comment 1•24 years ago
|
||
can you please do a cvs diff -u2 (the perfered diff format for mozilla.org)
and post this as an attachment so I can review this bug?
Thanks
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•24 years ago
|
Priority: P2 → P1
Comment 2•24 years ago
|
||
This is not installation since checksetup.pl does exactly what it should be
doing.
Assignee: zach → justdave
Status: ASSIGNED → NEW
Component: Installation & Upgrading → Bugzilla-General
Comment 3•24 years ago
|
||
*** This bug has been marked as a duplicate of 98368 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•24 years ago
|
Target Milestone: Bugzilla 2.16 → ---
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•