Discuz! info: Can not connect to MySQL server

Time: 2015-8-28 12:10am
Script: /viewthread.php

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