Fatal error: Connecting to MySQL server 'localhost' failed.

You get more information about the problem in our knowledge base: http://www.woltlab.com/help/?code=2002

Information:

error message: Connecting to MySQL server 'localhost' failed.
error code: 2002
sql type: MySQLDatabase
sql error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)
sql error number: 2002
sql version:
file: /home/metinwor/public_html/foro/wcf/lib/system/database/MySQLDatabase.class.php (29)
php version: 5.4.31
wcf version: 1.0.10 (Horizon)
date: Sat, 23 Aug 2014 17:19:01 +0000
request: /index.php?page=Thread&threadID=4802
referer:

Stacktrace:

#0 /home/metinwor/public_html/foro/wcf/lib/system/database/Database.class.php(76): MySQLDatabase->connect()
#1 /home/metinwor/public_html/foro/wcf/lib/system/WCF.class.php(270): Database->__construct(...)
#2 /home/metinwor/public_html/foro/wcf/lib/system/WCF.class.php(88): WCF->initDB()
#3 /home/metinwor/public_html/foro/global.php(18): WCF->__construct()
#4 /home/metinwor/public_html/foro/index.php(7): require_once('/home/metinwor/...')
#5 {main}