[Labs-l] Unable to access MW vagrant instance via proxy

Huji Lee huji.huji at gmail.com
Sat Dec 3 22:00:05 UTC 2016


Sorry, but that did not work either:

~$ mysql -h 127.0.0.1 -u wikiadmin -pwikipassword
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)

For the record, the my.cnf file looks like http://pastebin.com/SpkNuLEP and
the /run/mysqld directory is empty as shown below:

$ ls -a /run/mysqld/
.  ..





On Sun, Nov 27, 2016 at 4:49 PM, Tim Landscheidt <tim at tim-landscheidt.de>
wrote:

> 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
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20161203/d5449e15/attachment.html>


More information about the Labs-l mailing list