Cdbexception Cdbcommand Failed To Execute The Sql Statement: Sqlstate[Hy000]: General Error: 2006 Mysql Server Has Gone Away


most of the time i am getting this error in my new project, but i have almost 5 other project which those developed by yii on same server and there is no issue with theme.


CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

i search so much and one person said you have to change localhost to but still i am getting error !!!

please advise,

Here are the most popular reasons of this error

Thanks for your reply,

but i have other huge project on same server and works fineā€¦