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 <[email protected]> wrote: > 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 >
_______________________________________________ Labs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/labs-l
