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/run/mysqld/mysqld.sock' (2)
sql error number: 2002
sql version:
file: /export/storage/s020/zungerhof/upload/wcf/lib/system/database/MySQLDatabase.class.php (29)
php version: 5.4.4-14+deb7u8
wcf version: 1.0.7
date: Thu, 24 Apr 2014 08:24:12 +0000
request: /upload/index.php/index.php/index.php/index.php?page=User&userID=838
referer:

Stacktrace:

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