CDbException

CDbCommand не удалось исполнить SQL-запрос: CDbCommand не удалось подготовить SQL-запрос: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. The SQL statement executed was:
CREATE TABLE tbl_log
(
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
level VARCHAR(128),
category VARCHAR(128),
user_name VARCHAR(128),
logtime INTEGER,
message TEXT
) ENGINE=InnoDB DEFAULT CHARSET=utf8

/var/www/web/sites/193.107.237.32/Yii/current/db/CDbCommand.php(357)

345         {
346             if($this->_connection->enableProfiling)
347                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
348 
349             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
350             $message=$e->getMessage();
351             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
352                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
353 
354             if(YII_DEBUG)
355                 $message.='. The SQL statement executed was: '.$this->getText().$par;
356 
357             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
358                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
359         }
360     }
361 
362     /**
363      * Executes the SQL statement and returns query result.
364      * This method is for executing an SQL query that returns result set.
365      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
366      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
367      * them in this way can improve the performance. Note that if you pass parameters in this way,
368      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
369      * Please also note that all values are treated as strings in this case, if you need them to be handled as

Stack Trace

#0
+
 /var/www/web/sites/193.107.237.32/protected/modules/itexcms/extensions/iCDbLogRoute.php(29): CDbCommand->execute()
24     category VARCHAR(128),
25         user_name VARCHAR(128),                        
26     logtime INTEGER,
27     message TEXT
28 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8";
29         $db->createCommand($sql)->execute();
30                
31     }
32         
33     protected function processLogs($logs)
34     {
#8
+
 /var/www/web/sites/193.107.237.32/index.php(23): YiiBase::createWebApplication("/var/www/web/sites/193.107.237.32/protected/config/main.php")
18 }
19 
20 require_once 'Yii/current/YiiBase.php';
21 require_once 'protected/yii.php';
22 
23 Yii::createWebApplication($config)->run();
2024-04-18 21:14:02 Apache/2.2.22 (Debian) Yii Framework/1.1.13