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

Huji Lee huji.huji at gmail.com
Sat Dec 3 22:40:58 UTC 2016


Thanks Bryan! I added it to the documentations so others would find the
answer more easily. [1]

Huji

[1]
https://wikitech.wikimedia.org/w/index.php?title=Help%3AMediaWiki-Vagrant_in_Labs&type=revision&diff=1073534&oldid=939646

On Sat, Dec 3, 2016 at 5:20 PM, Bryan Davis <bd808 at wikimedia.org> wrote:

> On Sat, Dec 3, 2016 at 3:00 PM, Huji Lee <huji.huji at gmail.com> wrote:
> > 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/
> > .  ..
>
> The MySQL instance provisioned by MediaWiki-Vagrant is inside the
> Vagrant managed VM and not on the host computer directly. You need to
> enter the VM to interact with the database. The default VM user should
> already have a ~/.my.cnf provisioned by Puppet that gives access to
> the databases.
>
>   me at laptop:~$ ssh my-labs-instance
>   me at my-labs-instance:~$ cd /srv/mediawiki-vagrant
>   me at my-labs-instance:/srv/mediawiki-vagrant$ vagrant ssh
>   vagrant at mediawiki-vagrant:~$ mysql
>
> Bryan
> --
> Bryan Davis              Wikimedia Foundation    <bd808 at wikimedia.org>
> [[m:User:BDavis_(WMF)]]  Sr Software Engineer            Boise, ID USA
> irc: bd808                                        v:415.839.6885 x6855
>
> _______________________________________________
> 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/4491dd6e/attachment.html>


More information about the Labs-l mailing list