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,修改后如下图


最后重新编译即可。

本文链接地址: CentOS7下编译安装MySQL后客户端出现Segmentation fault的解决方案

打赏作者
赞助/Donate

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

正在跳转到PayPal...

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*