Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Error with code 2002 in '/var/www/russkaja-ohota.ru_/public_html/wa-system/database/waDbMysqliAdapter.class.php' around line 33:

   28	    {
   29	        $host = $settings['host'];
   30	        $port = isset($settings['port']) ? $settings['port'] : ini_get("mysqli.default_port");
   31	        $handler = @new mysqli($host, $settings['user'], $settings['password'], $settings['database'], $port);
   32	        if ($handler->connect_error) {
 >>33	            throw new waDbException($handler->connect_error, $handler->connect_errno);
   34	        }
   35	        
   36	        $charset = isset($settings['charset']) ? $settings['charset'] : 'utf8';
   37	        @$handler->set_charset($charset);
   38	        if (isset($settings['sql_mode'])) {

Call stack

#0 /var/www/russkaja-ohota.ru_/public_html/wa-system/database/waDbAdapter.class.php(30): waDbMysqliAdapter->connect(Array)
#1 /var/www/russkaja-ohota.ru_/public_html/wa-system/database/waDbConnector.class.php(49): waDbAdapter->__construct(Array)
#2 /var/www/russkaja-ohota.ru_/public_html/wa-system/database/waModel.class.php(72): waDbConnector::getConnection('default', false)
#3 /var/www/russkaja-ohota.ru_/public_html/wa-system/config/waAppConfig.class.php(336): waModel->__construct()
#4 /var/www/russkaja-ohota.ru_/public_html/wa-system/config/waAppConfig.class.php(244): waAppConfig->install()
#5 /var/www/russkaja-ohota.ru_/public_html/wa-system/waSystem.class.php(94): waAppConfig->checkUpdates()
#6 /var/www/russkaja-ohota.ru_/public_html/wa-system/routing/waRouting.class.php(290): waSystem::getInstance('shop', NULL, true)
#7 /var/www/russkaja-ohota.ru_/public_html/wa-system/routing/waRouting.class.php(208): waRouting->getAppRoutes('shop', Array, true)
#8 /var/www/russkaja-ohota.ru_/public_html/wa-system/waSystem.class.php(543): waRouting->dispatch()
#9 /var/www/russkaja-ohota.ru_/public_html/index.php(7): waSystem->dispatch()
#10 {main}

Request

array (
  't' => '1',
  'c' => '1113000',
)

Params

array (
  'app' => 'shop',
  '_name' => 'Русская охота, интернет-магазин товаров для охоты, рыбалки и туризма',
  'theme' => 'good_hunt',
  'theme_mobile' => 'good_hunt',
  'locale' => 'ru_RU',
  'title' => 'Русская охота, интернет-магазин товаров для охоты, рыбалки и туризма',
  'meta_keywords' => 'охота туризм рыбалка интернет магазин',
  'meta_description' => 'Товары для охоты, рыбалки, туризма. Доставка по России почтой и транспортными компаниями.',
  'url_type' => '1',
  'type_id' => '0',
  'payment_id' => '0',
  'shipping_id' => '0',
  'currency' => 'RUB',
  'stock_id' => '1',
  'drop_out_of_stock' => '1',
)