关于mysql8的安装
内存不足2GB的,是先判断是否满足mysql8安装条件才加swap,为什么不先加swap再判断呢?补充内容 (2019-4-27 14:13):
a
补充内容 (2019-4-27 14:15):
centos7.6安装mysql8.0.15的时候也出现了和之前那个帖子一样的问题,错误提示都差不多,不过是在56%的时候出现,我安装mysql8.0.16的话则是一开始就出现...
补充内容 (2019-4-27 14:24):
https://bbs.vpser.net/thread-18524-1-1.html centos7.6出现与这个帖子相似的提示可以确定是gcc版本问题对吧,下面是8.0.16的错误提示 cd mysql-8.0.16...
Download or use exist boost...[0m
-- Running cmake version 2.8.12.2
CMake Warning at CMakeLists.txt:43 (MESSAGE):
Please use cmake3 rather than cmake on this platform
-- Please install cmake3 (yum install cmake3)
CMake Error at CMakeLists.txt:55 (CMAKE_MINIMUM_REQUIRED):
CMake 3.4.3 or higher is required.You are running version 2.8.12.2
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
cp: cannot stat ‘/usr/local/mysql/var/*’: No such file or directory
include/mysql.sh: line 711: /usr/local/mysql/bin/mysqld: No such file or directory
cp: cannot stat ‘support-files/mysql.server’: No such file or directory
mysql.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig mysql on
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 50: /usr/local/mysql/bin/mysqladmin: No such file or directory
failed, try other way...
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 63: /usr/local/mysql/bin/mysql: No such file or directory
Set password failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
Update root password...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove anonymous users...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 681: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
Clean database src directory... mysql 8.0.16需要gcc 5.3以上版本,centos 7的是4.8.5不符合要求,可以按 https://www.vpser.net/manage/centos-6-upgrade-gcc.html 升级gcc
同时升级cmake至3.4.3以上版本,升级方法:安装epel,然后yum install cmake3
mv /usr/bin/cmake /usr/bin/cmake.old
ln -s /usr/bin/cmake3 /usr/bin/cmake
后再试试
页:
[1]