VPS侦探论坛

 找回密码
 注册
查看: 3569|回复: 5

请教下加装mysql的问题

[复制链接]
发表于 2017-11-30 12:32:40 | 显示全部楼层 |阅读模式

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

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

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

谢了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-11-30 12:38:46 | 显示全部楼层


既然可以选择不装就肯定可以单独进行安装 https://lnmp.org/changelog.html
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-11-30 13:32:23 | 显示全部楼层

呃,谢大佬回复,发帖前我Google过,也看到更新日志有一句:增加是否已安装LNMP判断,防止重复安装覆盖数据;

方法1,直接./install.sh lnmp,提示:
  1. 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,输入密码,版本号,提示:
  1. ~/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==================================================
  2. Press any key to start...or Press Ctrl+c to cancel
  3. ============================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,正确的方法是什么。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-12-1 11:18:22 | 显示全部楼层

回复 3# 的帖子




给你发的连接你没看重点,最开始就明确说明了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-12-2 22:26:23 | 显示全部楼层

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

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-12-3 11:03:21 | 显示全部楼层

回复 5# 的帖子


所有发布的版本都是测试过的,自己指定版本不一定测试过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-24 23:27 , Processed in 0.027039 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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