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

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

處理MysqlInnoDBFailingassertionret||assertonerror問題

2024-07-24 12:35:25
字體:
供稿:網(wǎng)友
  Mysql InnoDB:Failing assertion: ret || !assert_on_error問題是因為內(nèi)存或空間不足導(dǎo)致了,解決辦法就是重啟一下系統(tǒng)即可解決. 
 
  國慶回來后,發(fā)現(xiàn)mysql停止服務(wù)了,沒辦法繼續(xù)啟動了,查看日志,看到:
 
  131008 09:56:03 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  131008  9:56:03 [Warning] option 'read_buffer_size': unsigned value 1024 adjusted to 8192
  131008  9:56:03 [Note] Plugin 'FEDERATED' is disabled.
  131008  9:56:03 InnoDB: The InnoDB memory heap is disabled
  131008  9:56:03 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  131008  9:56:03 InnoDB: Compressed tables use zlib 1.2.3
  131008  9:56:03 InnoDB: Using Linux native AIO
  131008  9:56:03 InnoDB: Initializing buffer pool, size = 128.0M
  131008  9:56:03  InnoDB: Assertion failure in thread 47953380146304 in file ut0mem.c line 103
  InnoDB: Failing assertion: ret || !assert_on_error
  InnoDB: We intentionally generate a memory trap.
  InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
  InnoDB: If you get repeated assertion failures or crashes, even
  InnoDB: immediately after the mysqld startup, there may be
  InnoDB: corruption in the InnoDB tablespace. Please refer to
  InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
  InnoDB: about forcing recovery.
  01:56:03 UTC - mysqld got signal 6 ;
  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=0
  read_buffer_size=8192
  max_used_connections=0
  max_threads=151
  thread_count=0
  connection_count=0
  It is possible that mysqld could use up to  
  key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 312196 K  bytes of memory
  Hope that's ok; if not, decrease some variables in the equation.
  
  Thread pointer: 0x0
  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...
  stack_bottom = 0 thread_stack 0x40000
  /usr/libexec/mysqld(my_print_stacktrace+0x2e)[0x78b18e]
  /usr/libexec/mysqld(handle_fatal_signal+0x493)[0x6741b3]
  /lib64/libpthread.so.0(+0xf500)[0x2b9d0116a500]
  /lib64/libc.so.6(gsignal+0x35)[0x2b9d02b9f8a5]
  /lib64/libc.so.6(abort+0x175)[0x2b9d02ba1085]
  /usr/libexec/mysqld[0x8363d8]
  /usr/libexec/mysqld[0x8944be]
  /usr/libexec/mysqld[0x893d26]
  /usr/libexec/mysqld[0x84ea80]
  /usr/libexec/mysqld[0x858aab]
  /usr/libexec/mysqld[0x817bf0]
  /usr/libexec/mysqld[0x7e4390]
  /usr/libexec/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x41)[0x676eb1]
  /usr/libexec/mysqld[0x58d4d8]
  /usr/libexec/mysqld(_Z11plugin_initPiPPci+0x8c8)[0x590db8]
  /usr/libexec/mysqld[0x518078]
  /usr/libexec/mysqld(_Z11mysqld_mainiPPc+0x3fd)[0x51b1dd]
  /lib64/libc.so.6(__libc_start_main+0xfd)[0x2b9d02b8bcdd]
  /usr/libexec/mysqld[0x510ee5]
  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.
  131008 09:56:03 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
  根據(jù)這個鏈接:http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html,進行操作,修改my.cnf,加入:
 
  [mysqld]
 
  innodb_force_recovery = 4
 
  innodb_force_recovery有0 - 6,7個選項,具體含義可以直接訪問上面的鏈接,官方解釋得很清楚,保存my.cnf后,嘗試重啟mysql,又出現(xiàn)新情況:
 
  131008 10:00:24 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  131008 10:00:24 [Note] Plugin 'FEDERATED' is disabled.
  131008 10:00:24 InnoDB: The InnoDB memory heap is disabled
  131008 10:00:24 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  131008 10:00:24 InnoDB: Compressed tables use zlib 1.2.3
  131008 10:00:24 InnoDB: Using Linux native AIO
  131008 10:00:24 InnoDB: Initializing buffer pool, size = 128.0M
  InnoDB: mmap(137363456 bytes) failed; errno 12
  131008 10:00:24 InnoDB: Completed initialization of buffer pool
  131008 10:00:24 InnoDB: Fatal error: cannot allocate memory for the buffer pool  --phpfensi.com
  131008 10:00:24 [ERROR] Plugin 'InnoDB' init function returned error.
  131008 10:00:24 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  131008 10:00:24 [ERROR] Unknown/unsupported storage engine: InnoDB
  131008 10:00:24 [ERROR] Aborting
  
  131008 10:00:24 [Note] /usr/libexec/mysqld: Shutdown complete
  
  131008 10:00:24 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
  竟然提示內(nèi)存不足以分配,暫時釋放了一下內(nèi)存,重新重啟,終于正常了,接下來要查哪里內(nèi)存使用出現(xiàn)問題了.

(編輯:武林網(wǎng))

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 阿巴嘎旗| 沙河市| 萝北县| 泽库县| 陇西县| 云南省| 青海省| 台南市| 铁力市| 高台县| 台湾省| 上高县| 南乐县| 周至县| 浦江县| 博兴县| 巴中市| 五大连池市| 尚义县| 滨州市| 同德县| 逊克县| 盈江县| 罗源县| 穆棱市| 临沧市| 潜江市| 丰顺县| 大埔区| 玉田县| 溆浦县| 西林县| 河间市| 桦南县| 山东省| 且末县| 宽甸| 乌审旗| 广州市| 南昌市| 庄浪县|