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: /var/www/gay-fetish.de/public_html/wcf/lib/system/database/MySQLDatabase.class.php (29)
php version: 5.6.24-1+b1
wcf version: 1.0.4 pl 1
date: Fri, 11 Jul 2025 05:37:43 +0000
request: /board/index.php?page=Thread&threadID=333995&s=2ca6ccd21c77ab0e332b2732f5d223be7c08f5cb
referer:

Stacktrace:

#0 /var/www/gay-fetish.de/public_html/wcf/lib/system/database/Database.class.php(76): MySQLDatabase->connect()
#1 /var/www/gay-fetish.de/public_html/wcf/lib/system/WCF.class.php(224): Database->__construct(...)
#2 /var/www/gay-fetish.de/public_html/wcf/lib/system/WCF.class.php(46): WCF->initDB()
#3 /var/www/gay-fetish.de/public_html/board/global.php(18): WCF->__construct()
#4 /var/www/gay-fetish.de/public_html/board/index.php(7): require_once('/var/www/gay-fe...')
#5 {main}