Exception occurred while logging exception: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused")
#0 /usr/local/apache/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /usr/local/apache/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /usr/local/apache/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /usr/local/apache/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /usr/local/apache/htdocs/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /usr/local/apache/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /usr/local/apache/htdocs/lib/private/DB/ConnectionFactory.php(145): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /usr/local/apache/htdocs/lib/private/Server.php(493): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /usr/local/apache/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#9 /usr/local/apache/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('DatabaseConnect...')
#10 /usr/local/apache/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#11 /usr/local/apache/htdocs/lib/private/Server.php(1160): OC\ServerContainer->query('DatabaseConnect...')
#12 /usr/local/apache/htdocs/lib/private/Server.php(370): OC\Server->getDatabaseConnection()
#13 /usr/local/apache/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#14 /usr/local/apache/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppConfig')
#15 /usr/local/apache/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AppConfig')
#16 /usr/local/apache/htdocs/lib/private/Server.php(1089): OC\ServerContainer->query('AppConfig')
#17 /usr/local/apache/htdocs/lib/private/Server.php(547): OC\Server->getAppConfig()
#18 /usr/local/apache/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#19 /usr/local/apache/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppManager')
#20 /usr/local/apache/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#21 /usr/local/apache/htdocs/lib/private/Server.php(1359): OC\ServerContainer->query('AppManager')
#22 /usr/local/apache/htdocs/lib/private/legacy/app.php(346): OC\Server->getAppManager()
#23 /usr/local/apache/htdocs/lib/private/legacy/app.php(110): OC_App::getEnabledApps()
#24 /usr/local/apache/htdocs/lib/base.php(579): OC_App::loadApps(Array)
#25 /usr/local/apache/htdocs/lib/base.php(998): OC::init()
#26 /usr/local/apache/htdocs/index.php(54): require_once('/usr/local/apac...')
#27 {main}