https://bugzilla.wikimedia.org/show_bug.cgi?id=36300
Web browser: ---
Bug #: 36300
Summary: DatabaseMysql.php ignores $wgDBport
Product: MediaWiki
Version: 1.18.1
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Database
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
When using a remote database with the settings:
$wgDBtype = "mysql";
$wgDBserver = "192.168.0.1";
$wgDBport = "2706";
$wgDBname = "wikidb";
$wgDBuser = "root";
The variable $wgDBport is ignored by the mysql database class. Instead you'll
have to use the following configuration:
$wgDBtype = "mysql";
$wgDBserver = "192.168.0.1:2706";
$wgDBname = "wikidb";
$wgDBuser = "root";
In our case the serverside error was
"(Can't contact the database server: Lost connection to MySQL server at
'reading initial communication packet', system error: 111"
which is a bit confusing but we tracked it down using wireshark that the
default mysql port 3306 was used instead of our port.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l