CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1130] Host '103.154.184.209' is not allowed to connect to this MySQL server

/home/rrxiamvjs/public_html/framework/db/CDbConnection.php(379)

367     {
368         if ($this->_pdo===null) {
369             if (empty($this->connectionString)) {
370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             }
372             try {
373                 Yii::trace('Opening DB connection', 'system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             } catch (PDOException $e) {
378                 if (YII_DEBUG) {
379                     throw new CDbException('CDbConnection failed to open the DB connection: '.
380                         $e->getMessage(), (int)$e->getCode(), $e->errorInfo);
381                 } else {
382                     Yii::log($e->getMessage(), CLogger::LEVEL_ERROR, 'exception.CDbException');
383                     throw new CDbException('CDbConnection failed to open the DB connection.', (int)$e->getCode(), $e->errorInfo);
384                 }
385             }
386         }
387     }
388 
389     /**
390      * Closes the currently active DB connection.
391      * It does nothing if the connection is already closed.

Stack Trace

#10
+
 /home/rrxiamvjs/public_html/_functions.php(34): YiiBase::createApplication()
29             if(isset($application->mainSiteConfig['hide_script_file'])) {
30                 $application->urlManager->showScriptName = !$application->mainSiteConfig['hide_script_file'];
31             }
32         }
33         include dirname(__FILE__).'/common/classes/WebApplication.php';
34         $application = Yii::createApplication('WebApplication', $config);
35         $application->builderMode = $admin;
36         $application->isMainSite = false;
37         $application->website_type = $type;
38         $application->website_name = $name;
39         $application->self_domain = $self_domain;
#11
+
 /home/rrxiamvjs/public_html/index.php(59): run()
54         if (strlen($subdomains) > 0) {
55             run($subdomains, 'template');
56             exit();
57         }
58     } else {
59         run($subdomain, 'website');
60     }
61     exit();
62 }
63 
64 run($domain, 'website', 0, 1);
2024-04-18 21:13:28 Apache Yii Framework/1.1.15