启动mysql的时候,报如下错误:[root@db2-typq-test mysql]# /etc/init.d/mysql start
Starting MySQL.The server quit without updating PID file (/[失败]b/mysql/db2-typq-test.pid).数据库目录下确实没有db2-typq-test.pid这个文件,但是不知道该如何解决。错误日志:
110527 11:14:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110527 11:14:55 [Note] Plugin 'FEDERATED' is disabled.
110527 11:14:55 InnoDB: The InnoDB memory heap is disabled
110527 11:14:55 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110527 11:14:55 InnoDB: Compressed tables use zlib 1.2.3
110527 11:14:55 InnoDB: Using Linux native AIO
110527 11:14:55 InnoDB: Initializing buffer pool, size = 128.0M
110527 11:14:55 InnoDB: Completed initialization of buffer pool
110527 11:14:55 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
110527 11:14:55  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
110527 11:14:55  InnoDB: Assertion failure in thread 47791007778224 in file /export/home/pb2/build/sb_0-3159149-1301581932.71/rpm/BUILD/mysql-5.5.11/mysql-5.5.11/storage/innobase/fsp/fsp0fsp.c line 2101
InnoDB: Failing assertion: inode
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.
110527 11:14:55 - 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=16777216
read_buffer_size=262144
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 = 134070 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 = (nil) thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x39)[0x7ca4c9]
/usr/sbin/mysqld(handle_segfault+0x379)[0x4fdaf9]
/lib64/libpthread.so.0[0x3aa460e4c0]
/lib64/libc.so.6(gsignal+0x35)[0x3aa3a30215]
/lib64/libc.so.6(abort+0x110)[0x3aa3a31cc0]
/usr/sbin/mysqld[0x8dc322]
/usr/sbin/mysqld[0x8dcd95]
/usr/sbin/mysqld[0x8ee8b8]
/usr/sbin/mysqld[0x8b78da]
/usr/sbin/mysqld[0x862775]
/usr/sbin/mysqld[0x830039]
/usr/sbin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x46)[0x6874b6]
/usr/sbin/mysqld[0x57ff9c]
/usr/sbin/mysqld(_Z11plugin_initPiPPci+0xcf6)[0x583df6]
/usr/sbin/mysqld[0x503cd4]
/usr/sbin/mysqld(_Z11mysqld_mainiPPc+0x88d)[0x504dfd]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3aa3a1d974]
/usr/sbin/mysqld[0x4fb789]
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.
110527 11:14:55 mysqld_safe mysqld from pid file /var/lib/mysql/db2-typq-test.pid ended