VPS侦探论坛

 找回密码
 注册
查看: 3061|回复: 1

mysql升级失败

[复制链接]
发表于 2019-6-16 16:54:00 | 显示全部楼层 |阅读模式


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

Uncompress mysql-boost-8.0.16.tar.gz...
cd mysql-8.0.16...
^[[0;34m[+] 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 [found]
============================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!
[root@colin-aliyun lnmp1.6-full]# mysql
bash: mysql: command not found



这个情况应该怎么处理呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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方法

Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 16:40 , Processed in 0.026589 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表