VPS侦探论坛

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

数据库启动不了,求救。

[复制链接]
发表于 2015-7-28 17:09:26 | 显示全部楼层 |阅读模式

[ ok ] Stopping mysql (via systemctl): mysql.service.
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx...  done
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed                                               . See 'systemctl status mysql.service' and 'journalctl -xn' for details.
failed!
Starting php-fpm  done
root@Peng:~# 'systemctl status mysql.service'
-bash: systemctl status mysql.service: command not found
root@Peng:~# systemctl status mysql.service
● mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since Tue 2015-07-28 16:26:12 CST; 21s ago
  Process: 22207 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
  Process: 29700 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)


Jul 28 16:26:11 Peng mysql[29700]: Starting MySQL
Jul 28 16:26:12 Peng mysql[29700]: .The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
Jul 28 16:26:12 Peng systemd[1]: mysql.service: control process exited, code=exited status=1
Jul 28 16:26:12 Peng systemd[1]: Failed to start LSB: start and stop MySQL.
Jul 28 16:26:12 Peng systemd[1]: Unit mysql.service entered failed state.
root@Peng:~# journalctl -xn
-- Logs begin at Tue 2015-07-28 11:52:28 CST, end at Tue 2015-07-28 16:26:12 CST. --
Jul 28 16:17:01 Peng CRON[29632]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 28 16:17:01 Peng CRON[29633]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Jul 28 16:17:01 Peng CRON[29632]: pam_unix(cron:session): session closed for user root
Jul 28 16:22:48 Peng sshd[29635]: Accepted password for root from 113.97.110.85 port 52737 ssh2
Jul 28 16:22:48 Peng sshd[29635]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jul 28 16:26:11 Peng mysql[29700]: Starting MySQL
Jul 28 16:26:12 Peng mysql[29700]: .The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
Jul 28 16:26:12 Peng systemd[1]: mysql.service: control process exited, code=exited status=1
Jul 28 16:26:12 Peng systemd[1]: Failed to start LSB: start and stop MySQL.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
Jul 28 16:26:12 Peng systemd[1]: Unit mysql.service entered failed state.
root@Peng:~#

本帖子中包含更多资源

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

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


系统使用的是 Debian8
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2015-7-28 17:51:24 | 显示全部楼层

dpkg --list|grep mysql看一下
可能安装了mysql-client造成的,如果存在的话删除就行了
或有其他的如/etc/mysql/my.cnf的配置文件存在影响的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2015-7-29 00:39:06 | 显示全部楼层



本帖子中包含更多资源

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

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-7-29 00:42:22 | 显示全部楼层

要删掉 libmysqlclient18:amd64???如何删除?

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

发表于 2015-7-29 09:19:58 | 显示全部楼层

回复 5# 的帖子


apt-get purge mysql-common
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-24 22:41 , Processed in 0.027297 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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