今天MySQL数据库占内存过大,导致网站时常出现500错误,按以下步骤解决: 1. 尝试/etc/init.d/mysqld stop 无响应,只得ps -ef | grep mysql 然后kill掉两个相关的mysql进程 2. 尝试/etc/init.d/mysqld start 不成功,查看mysql日志 cat /var/log/mysqld.log,发现以下错误: 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+0x29) [0x84f539]
/usr/libexec/mysqld(handle_fatal_signal+0x483) [0x6a3713]
/lib64/libpthread.so.0(+0xf500) [0x7f85469cb500]
The manual page at http://dev