VPS侦探论坛

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

[Oracle] mysql启动错误,MySQL server PID file could not be found!

[复制链接]
发表于 2016-7-9 21:36:30 | 显示全部楼层 |阅读模式

  1. [root@Nserver1603 ~]# lnmp restart
  2. +-------------------------------------------+
  3. |    Manager for LNMP, Written by Licess    |
  4. +-------------------------------------------+
  5. |              http://lnmp.org              |
  6. +-------------------------------------------+
  7. Stoping LNMP...
  8. Stoping nginx...  done
  9. MySQL server PID file could not be found!                  [FAILED]
  10. Gracefully shutting down php-fpm . done
  11. Starting LNMP...
  12. Starting nginx...  done
  13. Starting MySQL.The server quit without updating PID file (/usr/local/mysql/var/Nserver1603.2ip.com.cn.pid).                                [FAILED]
  14. Starting php-fpm  done
复制代码
附上mysql的配置文件和错误日志:

本帖子中包含更多资源

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

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


160709 21:21:05 mysqld_safe The file /usr/local/mysql/bin/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information

按日志信息可能 mysqld 文件不存在
ls -l /usr/local/mysql/bin/ 看一下,你发的mysql日志应该不是完整日志吧
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-7-11 18:56:23 | 显示全部楼层

回复 2# 的帖子


额,我删除过一次错误日志,但是这个错误日志是我重启mysql的完整记录。
我看了下,确实是mysqld文件不存在,那应该怎么办?重新编译吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-7-11 22:20:15 | 显示全部楼层

回复 2# 的帖子




好吧,我到另外一台机器上又重新装了一个lnmp,然后把mysqld给复制过来就可以了,虽然办法笨,可还是解决问题了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-1 11:09 , Processed in 0.027160 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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