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: Wed, 24 Jul 2024 01:03:48 +0000
request: /forum/index.php?page=User&userID=36&s=b95d9230b4e8ea16ce3c454a7319217f676968fd
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}