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