Packets larger than max_allowed_packet are not allowed”

颜子 2012-07-27 04:58:45
我是新手,做了一个excel的文档保存数据库的操作,由于文件量较大,结果就出现Packets larger than max_allowed_packet are not allowed” 错误。我有百度搜了下解决方案,
看到wpekin的博客里的解决方案如下:

MySQL的一个系统参数:max_allowed_packet,其默认值为1048576(1M),
查询:show VARIABLES like '%max_allowed_packet%';
修改此变量的值:MySQL安装目录下的my.ini文件中的[mysqld]段中的"max_allowed_packet = 1M",如更改为4M(如果没有这行内容,增加一行),保存,重起MySQL服务。现在可以load大于1M的文件了

我按照那样做了,但是还是会出现一样的错误;求高手指导;(谁能提供个.NET群么?到时可以方便请教各位高手,我是新手)
...全文
198 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
{ datetime.inc}{ version.inc}const helplines=120;helpdata:array[1..helplines] of pchar=(‘RealMedia Analyzer, Version ‘+Version+‘ build ‘+_DATETIME_,‘Copyleft (C) 2000-2003 Virtual Research‘,‘‘,‘Usage: rma [command] ‘,‘‘,‘Command must start with a hyphen.‘,‘All commands and arguments are case-sensitive.‘,‘Available commands are:‘,‘‘,‘ -c[arguments] = check file integrity (default)‘,‘ arguments:‘,‘ d = set maximum allowed timestamp difference to n (0..32767)‘,‘ milliseconds, 0 means don‘‘t care, default is 2000‘,‘ s = set maximum allowed packet size to n (1..32767) kilobytes,‘,‘ default is don‘‘t care‘,‘ t = disable timestamps checking‘,‘ v = lower verbosity level (disable packets counter)‘,‘ z = stop on timestamp errors‘,‘‘,‘ -f[arguments] = try to fix broken file‘,‘ arguments:‘,‘ a = exclude n (0..64) packets after first found intact packet‘,‘ (but not more than the number used with ‘‘c‘‘ argument),‘,‘ default is 0‘,‘ b = exclude n (0..64) packets before last intact packet, default is 0‘,‘ c = use minimal size of n (2..32767) packets chain when searching for‘,‘ unbroken stream parts, default is 4‘,‘ d = set maximum allowed timestamp difference to n (0..32767)‘,‘ milliseconds, 0 means don‘‘t care, default is 2000‘,‘ m[suppresion level] = suppress logging, 1 means do not update log,‘,‘ 2 means mark only, 3 means suppress completely (default)‘,‘ n = only fix n (1..32767) broken packets, default is all‘,‘ p = force maximum packet size (intact packet criterion) to‘,‘ n (16..32767) bytes, default is take from header‘,‘ s = set maximum allowed packet size (broken packet criterion) to‘,‘ n (1..32767) kilobytes, default is don‘‘t care‘,‘ t = disable timestamps checking‘,‘ v = lower verbosity level (disable packets counter)‘,‘ z = try to fix timestamp errors‘,{ __UNIX__}‘ undo filename = create an undo file with the specified pathname‘,{}‘ /undo filename/ = create an undo file with the specified pathname‘,{}‘‘,‘ -d[argument] = dump some information about the file‘,‘ arguments (mutually exclusive):‘,‘ b = dump brief information about the file‘,‘ g = dump general information (default)‘,‘ l = display operations log only‘,‘ i = dump file index‘,‘‘,‘ -i[arguments] = rebuild index sections‘,‘ arguments:‘,‘ a = index all keyframe packets‘,‘ m[suppression level] = suppress logging‘,‘ v = lower verbosity level (disable packets counter)‘,‘‘,‘ -j[arguments] = join (multiplex) two RealMedia streams‘,‘ arguments:‘,{ __UNIX__}‘ firstfilename = pathname of the file containing first stream,‘,‘ default is stream00.rm‘,‘ secondfilename = pathname of the file containing second stream,‘,‘ default is stream01.rm‘,{}‘ /firstfilename/ = pathname of the file containing first stream,‘,‘ default is stream00.rm‘,‘ /secondfilename/ = pathname of the file containing second stream,‘,‘ default is stream01.rm‘,{}‘ i = build index after join‘,‘ m[suppression level] = suppress logging‘,‘ o = write old-style file header‘,‘ p = paste instead of multiplex‘,‘ s = try to synchronize streams‘,‘ q[l]

110,525

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧