Discuz! info: Can not connect to MySQL server

Time: 2015-8-28 2:11am
Script: /redirect.php

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