CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'mysql377int.srv-hostalia.com' (111 "Connection refused")

/home/sejas/bucletube.es/protected/views/site/index.php(7)

01 <div id="antes">
02 <?php
03 include_once('Video.php');
04 
05 $this->pageTitle=Yii::app()->name . ' - ';
06 
07 $connection=Yii::app()->db;
08 $sql="SELECT * FROM  `vista_videos_descripcion` where length(video_id)=11 and not deleted ORDER BY RAND() limit 20"; //limit
09 $command=$connection->createCommand($sql);
10 $rows=$command->queryAll();
11 
12 
13 
14 
15 echo '<ul class="videos">';
16 //para todo el arhcivo
17 foreach ($rows as $row) {
18     $video=new Video( $row['video_id'],$row['titulo'],$row['descripcion']);
19     echo "<li><a href=\"$video->url_bucletube\" alt=\"$video->titulo\" class=\"tip_trigger\">$video->img <span class=\"mytitle\"> <h3>$video->titulo</h3> <br /> $video->descripcion</span></a> </li>";

Stack Trace

#4
+
 /home/sejas/bucletube.es/protected/views/site/index.php(7): CModule->__get("db")
02 <?php
03 include_once('Video.php');
04 
05 $this->pageTitle=Yii::app()->name . ' - ';
06 
07 $connection=Yii::app()->db;
08 $sql="SELECT * FROM  `vista_videos_descripcion` where length(video_id)=11 and not deleted ORDER BY RAND() limit 20"; //limit
09 $command=$connection->createCommand($sql);
10 $rows=$command->queryAll();
11 
12 
#9
+
 /home/sejas/bucletube.es/protected/controllers/SiteController.php(33): CController->render("index")
28      */
29     public function actionIndex()
30     {
31         // renders the view file 'protected/views/site/index.php'
32         // using the default layout 'protected/views/layouts/main.php'
33         $this->render('index');
34     }
35 
36     /**
37      * This is the action to handle external exceptions.
38      */
#17
+
 /home/sejas/bucletube.es/index.php(15): CApplication->run()
10 defined('YII_DEBUG') or define('YII_DEBUG',true);
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->run();
2020-01-27 16:27:45 Apache Yii Framework/1.1.8