VPS侦探论坛

 找回密码
 注册
查看: 4754|回复: 7

1.4安装MySQL失败

[复制链接]
发表于 2018-1-15 17:06:06 | 显示全部楼层 |阅读模式

Checking ...Nginx: OKError: MySQL install failed.PHP: OKPHP-FPM: OKSorry, Failed to install LNMP!Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

Linux 2.6.32-696.6.3.el6.x86_64阿里云
CentOS 6.8

整个log压缩还是超过90kb,只能截取MySQL部分

[ 本帖最后由 xianxh 于 2018-1-15 18:13 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-1-15 19:16:09 | 显示全部楼层


最重要的mysql部分不完整
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-16 10:13:14 | 显示全部楼层

回复 2# 的帖子


麻烦军哥看一下问题。谢谢了~

[ 本帖最后由 xianxh 于 2018-1-16 10:23 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-1-16 13:22:00 | 显示全部楼层



cp: omitting directory `/usr/local/mysql/bin'
cp: omitting directory `/usr/local/mysql/docs'
cp: omitting directory `/usr/local/mysql/include'
cp: omitting directory `/usr/local/mysql/lib'
cp: omitting directory `/usr/local/mysql/man'
cp: omitting directory `/usr/local/mysql/mysql-test'
cp: omitting directory `/usr/local/mysql/share'
cp: omitting directory `/usr/local/mysql/support-files'
估计可能之前就已经有mysql
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-1-16 13:51:33 | 显示全部楼层

回复 4# 的帖子


没有呢,是新租的阿里云服务器。我把/usr/local/mysql删除了再安装,也是会报这个。

[ 本帖最后由 xianxh 于 2018-1-16 15:57 编辑 ]

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

 楼主| 发表于 2018-1-16 19:48:15 | 显示全部楼层

回复 4# 的帖子


我重新初始化了磁盘,还是报错
sed: -e expression #1, char 89: unterminated `s' command
cp: omitting directory `/usr/local/mysql/bin'
cp: omitting directory `/usr/local/mysql/docs'
cp: omitting directory `/usr/local/mysql/include'
cp: omitting directory `/usr/local/mysql/lib'
cp: omitting directory `/usr/local/mysql/man'
cp: omitting directory `/usr/local/mysql/mysql-test'
cp: omitting directory `/usr/local/mysql/share'
cp: omitting directory `/usr/local/mysql/support-files'
include/mysql.sh: line 617: /usr/local/mysql/bin/mysqld: No such file or directory
Add mysql service at system startup...
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/mysql.sh: line 33: /usr/local/mysql/bin/mysqladmin: No such file or directory
failed, try other way...
include/mysql.sh: line 42: /usr/local/mysql/bin/mysql: No such file or directory
Set password failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
Update root password...
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove anonymous users...
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Disallow root login remotely...
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Remove test database...
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
Reload privilege tables...
include/main.sh: line 599: /usr/local/mysql/bin/mysql: No such file or directory
... Failed!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
/etc/init.d/mysql: line 239: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)
/etc/init.d/mysql: line 239: my_print_defaults: command not found
ERROR! MySQL server PID file could not be found!
发表于 2018-1-17 10:49:50 | 显示全部楼层

回复 6# 的帖子


不大清楚原因,如果可以,可以pm ip和root密码我看一下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-1-17 16:21:23 | 显示全部楼层

回复 7# 的帖子


看了mysql.sh
ln -sf /usr/local/mysql/bin/mysql /usr/bin/mysql
    ln -sf /usr/local/mysql/bin/mysqldump /usr/bin/mysqldump
    ln -sf /usr/local/mysql/bin/myisamchk /usr/bin/myisamchk
    ln -sf /usr/local/mysql/bin/mysqld_safe /usr/bin/mysqld_safe
    ln -sf /usr/local/mysql/bin/mysqlcheck /usr/bin/mysqlcheck


所以不能把目录指定到/usr/local/mysql。

[ 本帖最后由 xianxh 于 2018-1-17 17:07 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-28 00:38 , Processed in 0.028566 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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