CentOS7下编译安装MySQL后客户端出现Segmentation fault的解决方案

CentOS7系统下编译安装MySQL5.7.19,服务能运行,但mysql访问时出现下面提示

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 8

Server version: 5.7.19 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.

Segmentation fault

修改源码包中的cmd-line-utils/libedit/terminal.c文件

注释掉char buf[TC_BUFSIZE];行,并修改area = buf修改为area = NULL,修改后如下图


最后重新编译即可。

本文链接地址: https://danteng.org/mysql-segmentation-fault/