Discuz! info: Can not connect to MySQL server

Time: 2015-8-27 9:22pm
Script: /viewthread.php

Error: Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (111)
Errno.: 2002