Hi!
I just got the following mySQL error with a large blob: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet'
Assuming, I cannot change the mySQL configuration, is there any way to make this whole thing work with Yii? A Yii option maybe?
Thanks
Page 1 of 1
mySQL max_allowed_packet
#2
Posted 13 March 2010 - 05:25 AM
mh469, on 13 March 2010 - 03:31 AM, said:
Hi!
I just got the following mySQL error with a large blob: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet'
Assuming, I cannot change the mySQL configuration, is there any way to make this whole thing work with Yii? A Yii option maybe?
Thanks
I just got the following mySQL error with a large blob: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet'
Assuming, I cannot change the mySQL configuration, is there any way to make this whole thing work with Yii? A Yii option maybe?
Thanks
try to use:
'db'=>array(
...
'initSQLs' => array(
'set global max_allowed_packet = 1500000', // 1500000 - your value (if you have permissions to change this value - it helps)
),
),
in your main.php ('components' section)
-
-
Thanks, you make me stronger!
-Thanks, you make me stronger!
#3
Posted 13 March 2010 - 11:09 AM
Thanks. I get, however, an error message that CDbConnection.initSQLs was not defined. The documentation agrees with that.
#5
Posted 14 March 2010 - 12:49 PM
Thanks. The newest stable release (released today) does know this parameter. (However, I don't need it any more. In the meantime, I found out that the oversized data came from wrong export data. An image (included in XML) was of the wrong format.)
Share this topic:
Page 1 of 1

Help












