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: /srv/vhosts/world-of-paranoid.com/htdocs/forum/wcf/lib/system/database/MySQLDatabase.class.php (29)
php version: 5.6.17-0+deb8u1
wcf version: 1.0.10 (Horizon)
date: Tue, 23 Jul 2024 23:43:46 +0000
request: /forum/index.php?form=UserLogin&s=2a7d3dffa1783a7b254d35ea00e59f0745d3dd67
referer:

Stacktrace:

#0 /srv/vhosts/world-of-paranoid.com/htdocs/forum/wcf/lib/system/database/Database.class.php(76): MySQLDatabase->connect()
#1 /srv/vhosts/world-of-paranoid.com/htdocs/forum/wcf/lib/system/WCF.class.php(271): Database->__construct(...)
#2 /srv/vhosts/world-of-paranoid.com/htdocs/forum/wcf/lib/system/WCF.class.php(88): WCF->initDB()
#3 /srv/vhosts/world-of-paranoid.com/htdocs/forum/global.php(19): WCF->__construct()
#4 /srv/vhosts/world-of-paranoid.com/htdocs/forum/index.php(1339): require_once('/srv/vhosts/wor...')
#5 {main}