Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
258 views
in Q2A Core by

I'm getting this error on my Q2A Forum - 

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in/home/speakors/public_html/forums/qa-include/qa-db.php on line 66

Please help

Q2A version: Latest

1 Answer

0 votes
by

Check in the file qa-config.php the value you have set to the variable : QA_MYSQL_HOSTNAME

If your MYSQL is installed on the same server of your webserver, do not use "localhost" but "127.0.0.1" (or the IP address or name of the local server).

See also here

...