Thread:Project:Support desk/Specify local endpoint (IP) for database connection

Hi,

I know $wgDBServer and other database connection related settings, but I didn't find a way to specify the local IP on a multi-homed machine (with multiple IPs) to be used by mediawiki to bind to. Is there a setting or not? This is a problem because MySql listens to 192.168.2.1 and allows only connections from the same IP. This will not be changed. Apache (httpd) is also listening at 192.168.2.1. However, MySql "thinks" the connection request is coming from 127.0.0.1 and blocks the request even though it's the same machine. The reason is that mediawiki probably doesn't bind to a specific IP when connecting to MySql, so 127.0.0.1 is used by default. (for programmers: the analog action to Socket.Bind)

MediaWiki 1.21.2, PHP 5.5.3, MySQL 5.6, Win7/64

I'm looking for an answer to this specific question and won't change my network setup or listen to different IPs.

Thanks in advance