ColinBin 发表于 2019-6-16 16:54:00

mysql升级失败


1 用./upgrade.sh mysql 升级到mysql 8.0.16,报下面的错误。

Uncompress mysql-boost-8.0.16.tar.gz...
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
include/upgrade_mysql.sh: line 532: /usr/local/mysql/bin/mysqld: No such file or directory


2 然后我 yum install cmake3 安装了cmake3。
3 我又重新用./upgrade.sh mysql 升级到mysql 8.0.16,然后报下面的错误:
============================check files==================================
mysql-boost-8.0.16.tar.gz
============================check files==================================
Starting backup all databases...
If the database is large, the backup time will be longer.
include/upgrade_mysql.sh: line 7: /usr/local/mysql/bin/mysqldump: No such file or directory
MySQL databases backup failed,Please backup databases manually!
# mysql
bash: mysql: command not found



这个情况应该怎么处理呢?

licess 发表于 2019-6-16 21:19:33


只安装上肯定是没有的他不会去主动找cmake3,只会找默认cmake
mv /usr/bin/cmake /usr/bin/cmake.old
ln -s /usr/bin/cmake3 /usr/bin/cmake
或直接
yum remove cmake 把老版本的卸载掉
再 ln -s /usr/bin/cmake3 /usr/bin/cmake

升级失败需要按教程恢复mysql后再进行升级



PS:使用epel安装cmake3方法

页: [1]
查看完整版本: mysql升级失败