解決mysql8.0.18報Segmentation fault錯的問題

報錯如下:

     顯示完下面信息之後,就顯示:

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Segmentation fault (core dumped)

 

解決辦法:

1、通過命令 locate terminal.c查找到我們的這個文件

[root@localhost mysql-8.0.18]# locate terminal.c
/opt/mysql-8.0.18/extra/libedit/terminal.c
/opt/mysql-8.0.18/extra/libedit/CMakeFiles/edit.dir/terminal.c.o

2、修改文件/opt/mysql-8.0.18/extra/libedit/terminal.c,將 area = buf;改爲 area = NULL;

3、重新再編譯的目錄下重新make和make install

4、最後重啓mysql

[root@localhost mysql-8.0.18]# mysql -uroot -hlocalhost -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.18

Copyright (c) 2000, 2019, 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.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 
mysql> 

5、此時就能登錄了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章