prouser 发表于 2017-11-30 12:32:40

请教下加装mysql的问题

lnmp1.4,原来机器上只装了nginx和php,没装mysql,现在想加装。
1、直接install.sh,提示备份然后uninstall再装。但站点的一些配置和证书之类太多,备份比较繁琐。

2、用upgrade.sh的话,应该也行不通,密码输入或不输入都提示报错,然后到输入版本号的步骤,估计安装过程会报错吧。

所以来请教一下,有没有什么方法加装mysql。

谢了。

licess 发表于 2017-11-30 12:38:46

既然可以选择不装就肯定可以单独进行安装 https://lnmp.org/changelog.html

prouser 发表于 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 ============================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,正确的方法是什么。

licess 发表于 2017-12-1 11:18:22

回复 3# 的帖子

给你发的连接你没看重点,最开始就明确说明了

prouser 发表于 2017-12-2 22:26:23

解决,也顺便谢谢多年以来坚持更新,提供那么方便的工具,辛苦了!
PS:install时也能象upgrade一样指定版本会跟方便些,还是有什么原因没开发此功能?

licess 发表于 2017-12-3 11:03:21

回复 5# 的帖子

所有发布的版本都是测试过的,自己指定版本不一定测试过
页: [1]
查看完整版本: 请教下加装mysql的问题