源码编译,5.1, 5.0的都试过,系统是CentOS5.4
不管怎么编译,结果都是
[root@localhost mysql-5.1.44]# /usr/local/mysql/bin/mysql
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.44-log Source distribution
Segmentation fault
tail /var/log/messages
Feb 22 11:26:28 localhost kernel: mysql[2883]: segfault at fffffffff347c6c0 rip 000000000041c001 rsp 00007ffff347be80 error 4
Feb 22 11:36:24 localhost kernel: mysql[18627]: segfault at ffffffffcef603e0 rip 000000000041c001 rsp 00007fffcef5fba0 error 4
Feb 22 11:36:37 localhost kernel: mysql[18632]: segfault at ffffffffe0e70df0 rip 000000000041c001 rsp 00007fffe0e705b0 error 4
好奇怪,用系统自带的又行,而且,只是mysql客户端有问题,其它的一切正常,能启动,能用
早二三个月也遇到一次,但当时没具体深究原因,好像是ncurses原理,后也不知怎么弄好了
后安装ncurses库,再编译就可以了,估计上次也是,只是当时没有留意