日期:2014-05-16  浏览次数:20875 次

mysql 数据库服务崩溃。大侠帮忙!
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"。


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


请大侠帮忙啊!

------解决方案--------------------
最好设立缓存机制,批量insert,要不然极易令整个表处于锁状态,即使你用innodb
------解决方案--------------------
100223 15:32:06 [ERROR] D:\非税系统\EXE\DB\bin\mysqld.exe: Out of memory (Needed 2016508 bytes)

检查一下你的INI文件中的配置。内存