您在這裡

昨天遇到系統鬼來瘋,今天解決了,PO給大家注意

nobody1225's 的頭像
nobody1225 在 2007-07-12 (四) 10:41 發表

昨天在做增加內容類型時,系統一直產生錯誤,使用IE瀏覽器的人會當掉
原因不曉得,但我當時正在做第69個欄位,當要增加到70個欄位時,就發生錯誤了
昨天找了一天,都沒找到資料,今天終於找到了,

原來是mysql5.x的關係

官網也有人有此問題
http://drupal.org/node/147179

解決方式
在這網頁裡有一段 http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html
Hi,

In Linux:

Copy the my-xxx.cnf file from /usr/share/mysql to /etc as my.cnf

xxx can be small, medium, large, huge ... depending on the requirement.

$ cp /usr/share/mysql/my-xxx.cnf /etc/my.cnf

In the my.cnf file, change the default
max_allowed_packet = 1M
to
max_allowed_packet = 16M

Save the file and restart MySQL server.

In Windows:

In the MySQL server installation directory,
in my.ini file, add the following line under [mysqld] in SERVER SECTION.

max_allowed_packet = 16M

Save the file and restart MySQL server.

Harsha.(這是那位高手回的,不是我)

所以使用mysql5.x的人,先修復這個問題吧,以免發生錯誤