VPS侦探论坛

 找回密码
 注册
查看: 3287|回复: 3

mysql安装到挂载目录无法启动

[复制链接]
发表于 2017-10-18 20:16:22 | 显示全部楼层 |阅读模式

如下显示安装日志,安装成功了 但是无法启动,手动启动也一样报错,安装前在lnmp.conf文件里修改了mysql安装到/datadisk/mysql里面,datadisk目录是我挂载的另一块硬盘。不知道是什么原因,如果不修改安装路径,都按照默认的来,不会报错。请军哥看下。


============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
PHP: OK
PHP-FPM: OK
Clean src directory...
+------------------------------------------------------------------------+
|          LNMP V1.4 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /datadisk/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password: roots01ed01                          |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 15673 15671 15670 15669 15668) is running...
php-fpm is runing!
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp6       0      0 :::111                  :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
Install lnmp takes 70 minutes.
Install lnmp V1.4 completed! enjoy it.


[root@idc-mysql lnmp1.4-full]# lnmp mysql start
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting MySQL.Logging to '/datadisk/mysql/var/idc-mysql.err'.
ERROR! The server quit without updating PID file (/datadisk/mysql/var/idc-mysql.pid).
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-10-18 20:29:53 | 显示全部楼层


没有具体安装日志或mysql错误日志没法说
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-10-19 08:56:24 | 显示全部楼层

回复 2# 的帖子


请问mysql的安装日志和启动时候的日志在哪个路径?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-10-19 13:11:27 | 显示全部楼层

回复 3# 的帖子




置顶帖反馈必读有详细说明
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-25 05:31 , Processed in 0.025814 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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