新搭建的mysql登陆报错mysql Segmentation fault (core dumped)

环境介绍:
操作系统:CentOS Linux release 7.3.1611
192.168.0.44  
192.168.0.45
mysql版本:mysql-5.6.38
源码安装完成后,尝试登录,报错如下
[root@localhost bin]#mysql
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.6.24 Source distribution

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
mysql Segmentation fault (core dumped)
==========解决方法============
在源码包里,编辑文件/media/mysql-5.6.38/cmd-line-utils/libedit/terminal.c (mysql 安装包所在路径)
把terminal_set方法中的 char buf[TC_BUFSIZE]; 这一行注释,再把 area = buf;改为 area = NULL;
更改后如下红色部分
protected int
terminal_set(EditLine el, const char *term)
{
int i;
/*char buf[TC_BUFSIZE];*/
char *area;
const struct termcapstr *t;
sigset_t oset, nset;
int lins, cols;
--phpfensi.com
(void) sigemptyset(&nset);
(void) sigaddset(&nset, SIGWINCH);
(void) sigprocmask(SIG_BLOCK, &nset, &oset);
area = NULL;
然后重新编译即可
[ root@ora101 media]# cd mysql-5.5.37
[ root@ora101 mysql-5.6.38]# cmake  .  \
 -DCMAKE_INSTALL_PREFIX=/usr/local/mysql  \
-DSYSCONFDIR=/etc  \
 -DDEFAULT_CHARSET=utf8  \
 -DDEFAULT_COLLATION=utf8_general_ci  \
 -DEXTRA_CHARSETS=all  \
 -DENABLED_LOCAL_INFILE=1
[ root@ora101 mysql-5.6.38]# make
[ root@ora101 mysql-5.6.38]# make install
问题解决。。。。。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29654823/viewspace-2148310/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29654823/viewspace-2148310/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值