解决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、此时就能登录了

猜你喜欢

转载自blog.csdn.net/baidu_38432732/article/details/106576400
今日推荐