Discuz! info: Can not connect to MySQL server[]

Time: 2014-12-22 10:13pm
Script: /viewthread.php

Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Errno.: 2002