CDbException

CDbConnection не удалось открыть соединение с базой данных: SQLSTATE[HY000] [1129] Host '92.63.67.6' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

/disk/www/edu2/www/protected/controllers/NewsController.php(8)

01 <?
02 class NewsController extends Controller
03 {
04 
05 
06     public function actionIndex()
07     {
08         $news = Yii::app()->db4->createCommand()
09                 ->select('*')
10                 ->from('b_iblock_section_element r')
11                 ->join('b_iblock_element n', 'r.IBLOCK_ELEMENT_ID=n.ID')
12                 ->where('r.IBLOCK_SECTION_ID=:id', array(':id' => 767))
13                 ->order('n.DATE_CREATE DESC')
14                 ->queryAll();
15         $this->render('index', array('news' => $news));
16     }
17 
18     public function actionView($id)
19     {
20         $model = News::model()->findByPk($id);

Stack Trace

#4
+
 /disk/www/edu2/www/protected/controllers/NewsController.php(8): CModule->__get("db4")
03 {
04 
05 
06     public function actionIndex()
07     {
08         $news = Yii::app()->db4->createCommand()
09                 ->select('*')
10                 ->from('b_iblock_section_element r')
11                 ->join('b_iblock_element n', 'r.IBLOCK_ELEMENT_ID=n.ID')
12                 ->where('r.IBLOCK_SECTION_ID=:id', array(':id' => 767))
13                 ->order('n.DATE_CREATE DESC')
#17
+
 /disk/www/edu2/www/index.php(23): CApplication->run()
18 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
19 //defined('YII_ENABLE_ERROR_HANDLER',false);
20 //defined('YII_ENABLE_EXCEPTION_HANDLER',false);
21 require_once($yii);
22 
23 Yii::createWebApplication($config)->run();
24 
25 }
2024-03-29 16:58:37 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.8