国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 數(shù)據(jù)庫(kù) > MySQL > 正文

解決Mysql InnoDB: Failing assertion: ret || !assert_on_error問題

2024-07-24 12:39:37
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

Mysql InnoDB:Failing assertion: ret || !assert_on_error問題是因?yàn)閮?nèi)存或空間不足導(dǎo)致了,解決辦法就是重啟一下系統(tǒng)即可解決. 

國(guó)慶回來(lái)后,發(fā)現(xiàn)mysql停止服務(wù)了,沒辦法繼續(xù)啟動(dòng)了,查看日志,看到:

  1. 131008 09:56:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 
  2. 131008  9:56:03 [Warning] option 'read_buffer_size': unsigned value 1024 adjusted to 8192 
  3. 131008  9:56:03 [Note] Plugin 'FEDERATED' is disabled. 
  4. 131008  9:56:03 InnoDB: The InnoDB memory heap is disabled 
  5. 131008  9:56:03 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
  6. 131008  9:56:03 InnoDB: Compressed tables use zlib 1.2.3 
  7. 131008  9:56:03 InnoDB: Using Linux native AIO 
  8. 131008  9:56:03 InnoDB: Initializing buffer pool, size = 128.0M 
  9. 131008  9:56:03  InnoDB: Assertion failure in thread 47953380146304 in file ut0mem.c line 103 
  10. InnoDB: Failing assertion: ret || !assert_on_error 
  11. InnoDB: We intentionally generate a memory trap. 
  12. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. 
  13. InnoDB: If you get repeated assertion failures or crashes, even 
  14. InnoDB: immediately after the mysqld startup, there may be 
  15. InnoDB: corruption in the InnoDB tablespace. Please refer to 
  16. InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html 
  17. InnoDB: about forcing recovery. 
  18. 01:56:03 UTC - mysqld got signal 6 ; 
  19. This could be because you hit a bug. It is also possible that this binary 
  20. or one of the libraries it was linked against is corrupt, improperly built, 
  21. or misconfigured. This error can also be caused by malfunctioning hardware. 
  22. We will try our best to scrape up some info that will hopefully help 
  23. diagnose the problem, but since we have already crashed,  
  24. something is definitely wrong and this may fail. 
  25.  
  26. key_buffer_size=0 
  27. read_buffer_size=8192 
  28. max_used_connections=0 
  29. max_threads=151 
  30. thread_count=0 
  31. connection_count=0 
  32. It is possible that mysqld could use up to  
  33. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 312196 K  bytes of memory 
  34. Hope that's ok; if not, decrease some variables in the equation. 
  35.  
  36. Thread pointer: 0x0 
  37. Attempting backtrace. You can use the following information to find out 
  38. where mysqld died. If you see no messages after this, something went 
  39. terribly wrong... 
  40. stack_bottom = 0 thread_stack 0x40000 
  41. /usr/libexec/mysqld(my_print_stacktrace+0x2e)[0x78b18e] 
  42. /usr/libexec/mysqld(handle_fatal_signal+0x493)[0x6741b3] 
  43. /lib64/libpthread.so.0(+0xf500)[0x2b9d0116a500] 
  44. /lib64/libc.so.6(gsignal+0x35)[0x2b9d02b9f8a5] 
  45. /lib64/libc.so.6(abort+0x175)[0x2b9d02ba1085] 
  46. /usr/libexec/mysqld[0x8363d8] 
  47. /usr/libexec/mysqld[0x8944be] 
  48. /usr/libexec/mysqld[0x893d26] 
  49. /usr/libexec/mysqld[0x84ea80] 
  50. /usr/libexec/mysqld[0x858aab] 
  51. /usr/libexec/mysqld[0x817bf0] 
  52. /usr/libexec/mysqld[0x7e4390] 
  53. /usr/libexec/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x41)[0x676eb1] 
  54. /usr/libexec/mysqld[0x58d4d8] 
  55. /usr/libexec/mysqld(_Z11plugin_initPiPPci+0x8c8)[0x590db8] 
  56. /usr/libexec/mysqld[0x518078] 
  57. /usr/libexec/mysqld(_Z11mysqld_mainiPPc+0x3fd)[0x51b1dd] 
  58. /lib64/libc.so.6(__libc_start_main+0xfd)[0x2b9d02b8bcdd] 
  59. /usr/libexec/mysqld[0x510ee5] 
  60. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains 
  61. information that should help you find out what is causing the crash. 
  62. 131008 09:56:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 

根據(jù)這個(gè)鏈接:http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html,進(jìn)行操作,修改my.cnf,加入:

[mysqld]

innodb_force_recovery = 4

innodb_force_recovery有0 - 6,7個(gè)選項(xiàng),具體含義可以直接訪問上面的鏈接,官方解釋得很清楚,保存my.cnf后,嘗試重啟mysql,又出現(xiàn)新情況:

  1. 131008 10:00:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 
  2. 131008 10:00:24 [Note] Plugin 'FEDERATED' is disabled. 
  3. 131008 10:00:24 InnoDB: The InnoDB memory heap is disabled 
  4. 131008 10:00:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins 
  5. 131008 10:00:24 InnoDB: Compressed tables use zlib 1.2.3 
  6. 131008 10:00:24 InnoDB: Using Linux native AIO 
  7. 131008 10:00:24 InnoDB: Initializing buffer pool, size = 128.0M 
  8. InnoDB: mmap(137363456 bytes) failed; errno 12 
  9. 131008 10:00:24 InnoDB: Completed initialization of buffer pool 
  10. 131008 10:00:24 InnoDB: Fatal error: cannot allocate memory for the buffer pool  --Vevb.com 
  11. 131008 10:00:24 [ERROR] Plugin 'InnoDB' init function returned error. 
  12. 131008 10:00:24 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
  13. 131008 10:00:24 [ERROR] Unknown/unsupported storage engine: InnoDB 
  14. 131008 10:00:24 [ERROR] Aborting 
  15.  
  16. 131008 10:00:24 [Note] /usr/libexec/mysqld: Shutdown complete 
  17.  
  18. 131008 10:00:24 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 

竟然提示內(nèi)存不足以分配,暫時(shí)釋放了一下內(nèi)存,重新重啟,終于正常了,接下來(lái)要查哪里內(nèi)存使用出現(xiàn)問題了.

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 天祝| 元江| 兰溪市| 宕昌县| 喀喇沁旗| 瓮安县| 南京市| 阆中市| 晋州市| 江源县| 北安市| 驻马店市| 鄂伦春自治旗| 巩留县| 定边县| 永城市| 吉首市| 遂川县| 和龙市| 新巴尔虎右旗| 富锦市| 桦南县| 吴川市| 宁城县| 烟台市| 确山县| 四川省| 延长县| 乐东| 梁河县| 仙桃市| 改则县| 小金县| 文昌市| 新丰县| 崇礼县| 阜宁县| 嘉禾县| 大冶市| 江达县| 永善县|