- 积分
- 46
- 威望
-
- 金钱
-
- 注册时间
- 2016-1-4
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-11-30 13:32:23
|
显示全部楼层
呃,谢大佬回复,发帖前我Google过,也看到更新日志有一句:增加是否已安装LNMP判断,防止重复安装覆盖数据;
方法1,直接./install.sh lnmp,提示:- If you want to reinstall LNMP, please BACKUP your data.and run uninstall script: ./uninstall.sh before you install.
复制代码 查看了命令,没有./install.sh mysql之类。又怕./uninstall.sh把配置给清空了。
方法2,./upgrade.sh,选择2,升级mysql,输入密码,版本号,提示:- ~/lnmp1.4# ./upgrade.sh mysql+-----------------------------------------------------------------------+| Upgrade script for LNMP V1.4, Written by Licess |+-----------------------------------------------------------------------+| A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP |+-----------------------------------------------------------------------+| For more information please visit https://lnmp.org |+-----------------------------------------------------------------------+Enter current root password of Database (Password will not shown): include/main.sh: line 599: --defaults-file=~/.my.cnf: No such file or directoryOK, MySQL root password correct.include/upgrade_mysql.sh: line 515: /usr/local/mysql/bin/mysql: No such file or directoryCurrent MYSQL Version:You can get version number from http://dev.mysql.com/downloads/mysql/Please input MySQL Version you want.(example: 5.5.45 ): 5.5.58===========================Do you want to install the InnoDB Storage Engine?(Default yes,if you want please enter: y , if not please enter: n):No input, The InnoDB Storage Engine will enable.==================================================You will upgrade MySQL Version to 5.5.58==================================================
- Press any key to start...or Press Ctrl+c to cancel
- ============================check files==================================mysql-5.5.58.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 directoryMySQL databases backup failed,Please backup databases manually!
复制代码
所以发帖问问,如果可以单独加装mysql,正确的方法是什么。 |
|