新搭建的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;
然後重新編譯即可
[ media]# cd mysql-5.5.37
[ 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
[ mysql-5.6.38]# make
[ mysql-5.6.38]# make install
問題解決。。。。。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29654823/viewspace-2148310/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- mysql執行命令報segmentation fault 錯誤MySqlSegmentation
- 當import matplotlib.pyplot as ply 出現Segmentation fault (core dumped)ImportSegmentation
- 【分散式Tensorflow(0.11.0)問題 未解決】Segmentation fault (core dumped)分散式Segmentation
- mysql登陸報錯mysql: unknown variable 'basedir=MySql
- 配置OGG到MYSQL複製時登陸MYSQL報錯解決MySql
- MySQL命令列登陸,遠端登陸MySQLMySql命令列
- mysql密碼遺忘和登陸報錯問題MySql密碼
- sqplus 的 segmentation fault錯誤及解決!Segmentation
- 從程式棧記憶體底層原理到Segmentation fault報錯記憶體Segmentation
- 10203 Rman執行delete obsolete報錯Segmentation faultdeleteSegmentation
- Segmentation fault (coredump)的解決Segmentation
- pytorch 程式碼出現 ‘segmentation fault (core dump)’ 問題PyTorchSegmentation
- netca 啟動時報錯(Segmentation fault(coredump))Segmentation
- 什麼是Segmentation fault(Core Dump)? + 我遇到的例項問題Segmentation
- 盤點Mysql的登陸方式MySql
- tacmd[203] no segmentation fault(coredump)ACMSegmentation
- mysql 8.0 使用 navicat 登入報錯MySql
- MySQL登陸命令列引數MySql命令列
- windows 下用 as sysdba登陸報錯Windows
- 執行sqlplus遭遇Segmentation FaultSQLSegmentation
- MySQL 遠端登陸踩坑記MySql
- MySQL login-path 本地快捷登陸MySql
- 解決Mysql中只能通過localhost登陸不能通過ip登陸的問題MySqllocalhost
- 白日夢的MySQL專題(第33篇):各種登陸MySQL的騷操作MySql
- mysql在Linux下登入正常,但是用Navicat登入報錯MySqlLinux
- Mysql鬧鬼!不要密碼也能登陸薦MySql密碼
- MySQL 5.6 關於登陸的初始化設定MySql
- mysql執行報錯mysql.sockMySql
- Mysql8.0 報錯MySql
- mysql登入報錯提示:ERROR 1045 (28000)的解決方法MySqlError
- 【Mysql】into outfile報錯的問題MySql
- MySQL服務開啟關閉及登陸- 2MySql
- SQLLDR利用EXPRESSION生成LOGFILE的檔名導致SEGMENTATION FAULTSQLExpressSegmentation
- 關於Mysql5.7高版本group by新特性報錯MySql
- 新環境搭建Mysql主從MySql
- centos6.8安裝mysql並配置遠端登陸CentOSMySql
- k8s-nginx二進位制報Illegal instruction (core dumped)K8SNginxStruct
- MySql報錯(持續更新)MySql