Article ID: 114099, created on Mar 24, 2014, last review on May 7, 2014

  • Applies to:
  • Plesk Sitebuilder 4.x for Linux/Unix

问题

当在向导中打开网站时在 Parallels Plesk Sitebuilder 中出现以下错误:

---8<---
File:/usr/local/sitebuilder/include/Base/DB/Table/Row.php
Line:42
Message:Table 'site_page' - SQLSTATE[08S01]:Communication link failure:1153 Got a packet bigger than 'max_allowed_packet' bytes
Code:0
--->8---

原因

Sitebuilder 请求的长度超过了 MySQL 上限 max_allowed_packet.该上限默认设置为1M。

解决方案

增加 /etc/my.cnf 中的 max_allowed_packet 值然后重启 MySQL 服务。例如,增加上限为 16M,可进行以下操作:

/etc/my.cnf
---
[mysqld]
max_allowed_packet=16M
---


~# /etc/init.d/mysqld restart

ea6a61e571a858aa6019ceb068ea403a 56797cefb1efc9130f7c48a7d1db0f0c fad6dc0c8e983c17ae70a51ac7952cd0 d055be4fdc562a8ecb8e6d0bf419f946

Email subscription for changes to this article