OC 10.0.8 does not connect to databas

mysql

#1

Hello,
I upgraded to OC 10.0.8 manually and restored the /data and /config-files.

Now I can’t connect to the database.

The error message reads as below. The problem is that I cannot find any /var/run directory. There only is /var/~run, but no mysql-subdirectory in there.

There only is a “mysql”-directory in /var/lib, which in turn contains “cloud_db” (the name of my database) and another /mysql directory.

In neither I can find a file mysqld.sock.

Any hints?
Thx in advance
a

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/run/mysqld/mysqld.sock’ (2)
#0 /var/www/cloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/cloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/cloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/cloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/cloud/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/cloud/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 /var/www/cloud/lib/private/DB/ConnectionFactory.php(146): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/cloud/lib/private/Server.php(521): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array)
#8 /var/www/cloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#9 /var/www/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#10 /var/www/cloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘DatabaseConnect…’)
#11 /var/www/cloud/lib/private/Server.php(1192): OC\ServerContainer->query(‘DatabaseConnect…’)
#12 /var/www/cloud/lib/private/Server.php(398): OC\Server->getDatabaseConnection()
#13 /var/www/cloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#14 /var/www/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AppConfig’)
#15 /var/www/cloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AppConfig’)
#16 /var/www/cloud/lib/private/Server.php(1121): OC\ServerContainer->query(‘AppConfig’)
#17 /var/www/cloud/lib/private/Server.php(575): OC\Server->getAppConfig()
#18 /var/www/cloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#19 /var/www/cloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AppManager’)
#20 /var/www/cloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’)
#21 /var/www/cloud/lib/private/Server.php(1391): OC\ServerContainer->query(‘AppManager’)
#22 /var/www/cloud/lib/private/legacy/app.php(346): OC\Server->getAppManager()
#23 /var/www/cloud/lib/private/legacy/app.php(110): OC_App::getEnabledApps()
#24 /var/www/cloud/lib/base.php(579): OC_App::loadApps(Array)
#25 /var/www/cloud/lib/base.php(997): OC::init()
#26 /var/www/cloud/index.php(54): require_once(’/var/www/cloud/…’)
#27 {main}


#2

Hey,

i did t he following search:

https://www.google.com/search?q=“Can’t+connect+to+local+MySQL+server+through+socket”

and found quite a lot resources like the following. I think they could help you to understand the issue here: