Re: [請益] PPT沒辦法上傳至資料庫
※ 引述《qazsd (nice play!)》之銘言:
: 我用的參考書是Dreamweaver 8 & PHP 5 資料庫網站實作
: 第14張的檔案上傳製作 似乎沒辦法將PPT檔上傳至資料庫
: 資料表的檔案格式是 long blob
: 想請問有人知道是否某些檔案上傳不了資料庫
: 謝謝
我想跟你的檔案類型並沒有關係
只是因為這個檔案比較 大 一點
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
If you need big queries (for example, if you are working
with big BLOB columns), you can increase the query limit
by setting the server's max_allowed_packet variable,
which has a default value of 1MB. You may also need to
increase the maximum packet size on the client end.
More information on setting the packet size is given in
Section B.1.2.10, “Packet too large”.
http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html
You can also use an option file to set max_allowed_packet
my.ini
[mysqld]
max_allowed_packet=16M
--
http://cttlee.no-ip.com
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.8.108.175
→
11/06 01:32, , 1F
11/06 01:32, 1F
→
11/06 01:36, , 2F
11/06 01:36, 2F
→
11/06 01:38, , 3F
11/06 01:38, 3F
推
11/06 01:48, , 4F
11/06 01:48, 4F
推
11/06 12:49, , 5F
11/06 12:49, 5F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
151
156