作者cttlee (蚊子)
看板PHP
标题Re: [请益] PPT没办法上传至资料库
时间Mon Nov 5 18:13:18 2007
※ 引述《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
1F:→ qazsd:该档案是1.2MB 原本是是中文命名的 改成英文後 仍然不行 囧 11/06 01:32
2F:→ qazsd:且upload_max_filesize = 10M 而网页内的大小从原本限制 11/06 01:36
3F:→ qazsd:10000B 到 400000B 仍然不行 @@ 11/06 01:38
4F:推 qazsd:对了 然後在资料库里档案的型态是 long blob @@ 11/06 01:48
5F:推 yudian:那个......400000B好像只有300多KB喔! 11/06 12:49