Page MenuHomePhabricator

"localhost" doesn't work for $wgDBhost on Windows
Closed, DeclinedPublic

Description

Author: happy.melon.wiki

Description:
Cf http://bugs.php.net/45150. We should use "127.0.0.1" instead where necessary.


Version: unspecified
Severity: minor
OS: Windows Vista

Details

Reference
bz22884

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:09 PM
bzimport set Reference to bz22884.
bzimport added a subscriber: Unknown Object (MLST).

It would be nice to check if we can connect via the Unix socket and default to 127.0.0.1 if we can't. Haven't come up with some way to do that yet though.

This is due to IPv6 Support in windows at least (http://blogs.iis.net/donraman/archive/2010/06/11/php-5-3-and-mysql-connectivity-problem.aspx (Linked in the above report)), Do Linux systems also have the same issue and we just haven't picked up on it?

Fixing summary (my fault anyway), this is about $wgDBhost, not about $wgServer.

WONTFIX. Tweaked some help info in r72664, though.

See the commit and help tweak for more info.