[Labs-l] Unable to access MW vagrant instance via proxy
Tim Landscheidt
tim at tim-landscheidt.de
Sun Nov 27 21:49:39 UTC 2016
Huji Lee <huji.huji at gmail.com> wrote:
> Thanks Tim. When I try to connect to the mysql server using the mysql -u
> wikiadmin -pwikipassword I get the following error message. I checked and
> the socket file really doesn't exist (the directory /run/mysqld/ is empty).
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/run/mysqld/mysqld.sock' (2)
> I ran sudo find / -type s to see if I can find the socket file elsewhere;
> the result is at http://pastebin.com/5LU21Zt5 and doesn't include any mysql
> socket files! Yet the instance is running a wiki on mysql. I am confused,
> and still need help connecting to the DB.
> […]
https://phabricator.wikimedia.org/diffusion/MWVA/browse/master/LocalSettings.php;56e841424332255b1101e88cf6fbfd80382216a8$16-19
says:
| […]
| // WMF specific HHVM builds don't support unix socket connections to MySQL.
| // Use IP address rather than default of 'localhost' to help runtime pick the
| // right connection method.
| $wgDBserver = '127.0.0.1';
| […]
so I assume you need to add "-h 127.0.0.1" to the mysql
call.
Tim
More information about the Labs-l
mailing list