当前位置:网站首页>What happens when you get stuck compiling and installing MySQL database in Linux system?

What happens when you get stuck compiling and installing MySQL database in Linux system?

2022-07-19 02:54:00 What are you doing? Go and study

When you compile and install half , Card to 77% Don't move

Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o
/root/workspace/mysql-5.5.11/sql/mysqld.cc: In function ‘void handle_connections_sockets()’:
/root/workspace/mysql-5.5.11/sql/mysqld.cc:5213: error: invalid conversion from ‘size_socket*’ to ‘socklen_t*’
/root/workspace/mysql-5.5.11/sql/mysqld.cc:5213: error:   initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)/root/workspace/mysql-5.5.11/sql/mysqld.cc:5280: error: invalid conversion from ‘int*’ to ‘socklen_t*’
/root/workspace/mysql-5.5.11/sql/mysqld.cc:5280: error:   initializing argument 3 of ‘int getsockname(int, sockaddr*, socklen_t*)’
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2 

 Insert picture description here

When installing the one button package , People often react when installing mysql when “ Get stuck ”,
It's not stuck , It is mysql It takes a long time to compile and install , More than others apache,php,nginx Any one will take a long time
It's usually 10 To 30 Different minutes , The details also depend on the hardware configuration of the machine , High configuration machines will be faster , Low configuration is naturally a little longer

So please use the compile time of one click package , Be patient

It can also be done in the following ways , determine mysql Is it during installation or is it really stuck
stay ssh Connect the terminal , use top See the resources
If you can see something make,cc1,install The process of waiting is beating , The instructions are in the process of installation , Just wait patiently
If there is nothing , Maybe it's really stuck or the network is broken
Sure Ctrl+c Terminate installation , Enter into your mysql Unzip the directory and execute the following command
make clean
rm CMakeCache.txt
Then recompile the installation

原网站

版权声明
本文为[What are you doing? Go and study]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207170010173629.html