Yii Framework Forum: Long Time Running App, Encounter The [2006, "mysql Server Has Gone Away" ] Error - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Long Time Running App, Encounter The [2006, "mysql Server Has Gone Away" ] Error CDbConnection will throw exception under the long time running app Rate Topic: -----

#1 User is offline   yiqing95 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 586
  • Joined: 27-December 10
  • Location:china

Posted 19 October 2013 - 12:17 AM

i use gearman for job handling !

a yii console app as gearman worker , often encounter the
> 2006, "MySQL server has gone away"
errors . so i google it and found some articles about this error , a better one is this https://github.com/l...vel/issues/1534

it seems that pdo do not have reconnect method , we must manually destroy the old one and reinitialize a new one .this may cause some strange results when using the transaction !

want to know how you guys settle this situation !
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users