[Labs-l] Unable to access MW vagrant instance via proxy
Bryan Davis
bd808 at wikimedia.org
Sat Dec 3 22:20:44 UTC 2016
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
More information about the Labs-l
mailing list