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: /www/bt_forum3/wcf/lib/system/database/MySQLDatabase.class.php (29)
php version: 5.2.17-SergeyD/16.2
wcf version: 1.0.11 pl 4 (Horizon)
date: Mon, 04 Nov 2024 11:11:05 +0000
request: /index.php?item=usercp&page=Help&s=170276fcc250438d0f96e3dba54d1c3a0e5dde7c
referer:

Stacktrace:

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