Sudden “MySQL server has gone away” error in PHP site

前端 未结 4 1130
抹茶落季
抹茶落季 2020-12-09 17:57

Today one of my websites started showing

Error Number: 2006
MySQL server has gone away

It\'s a low-traffic client site running under Apache 2.2.9 (Debian

4条回答
  •  有刺的猬
    2020-12-09 18:46

    Since the other sites work, we can assume that it is related to your site (and not the server). The official documents mention that this might happen if you try to execute queries after the server connection is closed. Do you have any hooks in CodeIgniter that does something towards the end of a request where the database connection might be closed?

提交回复
热议问题