64位linux上运行mysql4.0.20的问题
在32位redhat上安装运行良好
在64位redhat上也可以安装运行,但是mysql会经常自动重启(数据可以正常显示),错误日志为:
==========================================================================================
mysqld got signal 11;
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=402653184
read_buffer_size=2093056
max_used_connections=0
max_connections=1000
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 4485208 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Number of processes running now: 0
090514 15:09:09 mysqld restarted
/usr/local/mysql/libexec/mysqld: ready for connections.
Version: '4.0.20' socket: '/tmp/mysql.sock' port: 3306
===========================================================================================
在/etc/my.cnf是删除max_connections=1000这一行也无济于事.
mysql的编译:./configure --prefix=/usr/local/mysql --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared