在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
在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
thread_cache =8
把一句屏蔽了,mysql运行正常,这是为什么呢?
key_buffer_size=384M (不是4G哦)
我感觉不是内存的原因,我将key_buffer_size改为16M,read_buffer_size=16K,sort_buffer_size=256K还是自动重启
但是将thread_cache 屏蔽后就正常了,目前用的配置是
key_buffer_size=384M
read_buffer_size=2M
sort_buffer_size=2M