Connection refused

Error with code 2002 in '/home/market50/teplye-sady.ru/docs/wa-system/database/waDbMysqlAdapter.class.php' around line 31:

   26	            $handler = @mysql_pconnect($host, $settings['user'], $settings['password'], true);
   27	        } else {
   28	            $handler = @mysql_connect($host, $settings['user'], $settings['password'], true);
   29	        }
   30	        if (!$handler) {
 >>31	            throw new waDbException(mysql_error(), mysql_errno());
   32	        }
   33	        if (!mysql_select_db($settings['database'], $handler)) {
   34	            throw new waDbException(mysql_error(), mysql_errno());
   35	        }
   36	        

Call stack

#0 /home/market50/teplye-sady.ru/docs/wa-system/database/waDbAdapter.class.php(30): waDbMySQLAdapter->connect(Array)
#1 /home/market50/teplye-sady.ru/docs/wa-system/database/waDbConnector.class.php(49): waDbAdapter->__construct(Array)
#2 /home/market50/teplye-sady.ru/docs/wa-system/database/waModel.class.php(72): waDbConnector::getConnection('default', false)
#3 /home/market50/teplye-sady.ru/docs/wa-system/config/waAppConfig.class.php(231): waModel->__construct()
#4 /home/market50/teplye-sady.ru/docs/wa-system/config/waAppConfig.class.php(140): waAppConfig->install()
#5 /home/market50/teplye-sady.ru/docs/wa-system/waSystem.class.php(91): waAppConfig->checkUpdates()
#6 /home/market50/teplye-sady.ru/docs/wa-system/routing/waRouting.class.php(272): waSystem::getInstance('blog', NULL, true)
#7 /home/market50/teplye-sady.ru/docs/wa-system/routing/waRouting.class.php(202): waRouting->getAppRoutes('blog', Array, true)
#8 /home/market50/teplye-sady.ru/docs/wa-system/waSystem.class.php(440): waRouting->dispatch()
#9 /home/market50/teplye-sady.ru/docs/index.php(7): waSystem->dispatch()
#10 {main}

Request

array (
)

Params

array (
  'app' => 'blog',
)