mysql 数据库服务崩溃。大侠帮忙!

wooingcn 2010-02-23 03:40:03
100223 15:30:43 InnoDB: Started; log sequence number 0 33118083
100223 15:30:43 [Note] Recovering after a crash using mysql-bin
100223 15:30:43 [Note] Starting crash recovery...
100223 15:30:43 [Note] Crash recovery finished.
100223 15:30:43 [Note] Event Scheduler: Loaded 0 events
100223 15:30:43 [Note] D:\非税系统\EXE\DB\bin\mysqld.exe: ready for connections.
Version: '5.1.33-community-log' socket: '' port: 3309 MySQL Community Server (GPL)
100223 15:32:06 [ERROR] D:\非税系统\EXE\DB\bin\mysqld.exe: Out of memory (Needed 2016508 bytes)
100223 15:32:06 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space
100223 15:32:06 - mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.

key_buffer_size=536870912
read_buffer_size=1048576
max_used_connections=2
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 834488 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0x234355a0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
0054727A
01010101
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 252648F5=insert into inout_temp (czybm,zd1,ZD2,ZD3,ZD4,ZD5,ZD6,ZD7,ZD8,ZD9,ZD10,ZD11,ZD12,ZD13,ZD14,ZD15,ZD16,ZD17,ZD18,ZD19,ZD20,ZD21,ZD22,ZD23,ZD24,ZD25,ZD26,ZD27,ZD28,ZD29,ZD30,ZD31,ZD32,ZD33,ZD34,ZD35,ZD36,ZD37,ZD38,ZD39,ZD40,ZD41,ZD42,ZD43,ZD44,ZD45) values ('2','105','{72389676-BA57-4EEF-B75C-D30490F7FA2A}','330000','102','0060760163','0060760163','1','{6A6CE499-4A7A-4CFC-8E1B-BE9A22AA0318}','2010-1-12','中文20个字','150','0','2','中文','~|~','','','','','','','','','','','','2','2','1','1','0','0','0','0','1','0','0','','','','','0','','1','0');insert into inout_temp (czybm,zd1,ZD2,ZD3,ZD4,ZD5,ZD6,ZD7,ZD8,ZD9,ZD10,ZD11,ZD12,ZD13,ZD14,ZD15,ZD16,ZD17,ZD18,ZD19,ZD20,ZD21,ZD22,ZD23,ZD24,ZD25,ZD26,ZD27,ZD28,ZD29,ZD30,ZD31,ZD32,ZD33,ZD34,ZD35,ZD36,ZD37,ZD38,ZD39,ZD40,ZD41,ZD42,ZD43,ZD44,ZD45) values ('2','105','{028ECA2B-01B9-40B7-9384-DAD26C3B26F2}','330000','102','0060760164','0060760164','1','{6A6CE499-4A7A-4CFC-8E1B-BE9A22AA0318}','2010-1-12','中文司','35','0','2','中文','~|~
thd->thread_id=1
thd->killed=NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.


执行4200多条insert into语句的时候,MYSQL服务器死掉,MYSQL报错:



---------------------------
mysqld.exe - 应用程序错误
---------------------------
"0x0054727a" 指令引用的 "0x00000000" 内存。该内存不能为 "written"。


要终止程序,请单击“确定”。
要调试程序,请单击“取消”。
---------------------------
确定 取消
---------------------------


请大侠帮忙啊!
...全文
317 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
roro5119 2012-10-18
  • 打赏
  • 举报
回复
同样的问题啊。。。。怎么解决的楼主。。
懒得去死 2010-02-28
  • 打赏
  • 举报
回复
100223 15:32:06 [ERROR] D:\非税系统\EXE\DB\bin\mysqld.exe: Out of memory (Needed 2016508 bytes)

减小数据库中的参数。
老哥讲数据库 2010-02-26
  • 打赏
  • 举报
回复
引用 3 楼 xiner 的回复:
key_buffer = 256M
max_allowed_packet = 30M
table_cache = 1024
sort_buffer_size = 1M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 32M

我的INI里的配置,请再指点


你的存储引擎是什么,这些参数与mysiam相关的。
wooingcn 2010-02-24
  • 打赏
  • 举报
回复
key_buffer = 256M
max_allowed_packet = 30M
table_cache = 1024
sort_buffer_size = 1M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 32M

我的INI里的配置,请再指点
ACMAIN_CHM 2010-02-23
  • 打赏
  • 举报
回复
100223 15:32:06 [ERROR] D:\非税系统\EXE\DB\bin\mysqld.exe: Out of memory (Needed 2016508 bytes)

检查一下你的INI文件中的配置。内存溢出了
flairsky 2010-02-23
  • 打赏
  • 举报
回复
最好设立缓存机制,批量insert,要不然极易令整个表处于锁状态,即使你用innodb

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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