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)

2.14
defect

Tracking

()

RESOLVED DUPLICATE of bug 98368

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;
Severity: normal → critical
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.16
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
Status: NEW → ASSIGNED
Priority: P2 → P1
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
*** This bug has been marked as a duplicate of 98368 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Target Milestone: Bugzilla 2.16 → ---
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.