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

MySQL不响应,服务自动结束的对策?
问题如题

看err log ,有几处如下错误

错误1
[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

错误2
 Error: page old data size 14663 new data size 14791
Error: page old max ins size 1565 new max ins size 1437
InnoDB: Page dump in ascii and hex (16384 bytes):

请问以上错误的原因和对应方法

------解决方案--------------------
加大交换值。
------解决方案--------------------
减少mysql的buffer_pool
------解决方案--------------------
出现OUT OF MEMORY是由于你的参数设置的过大。


tmp_table_size=1024M
max_heap_table_size=1024M 搞小!
------解决方案--------------------
mysql缓存设置过大导致的。