On Sat, Dec 3, 2016 at 3:00 PM, Huji Lee <[email protected]> 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@laptop:~$ ssh my-labs-instance
  me@my-labs-instance:~$ cd /srv/mediawiki-vagrant
  me@my-labs-instance:/srv/mediawiki-vagrant$ vagrant ssh
  vagrant@mediawiki-vagrant:~$ mysql

Bryan
-- 
Bryan Davis              Wikimedia Foundation    <[email protected]>
[[m:User:BDavis_(WMF)]]  Sr Software Engineer            Boise, ID USA
irc: bd808                                        v:415.839.6885 x6855

_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l

Reply via email to