VPS侦探论坛

 找回密码
 注册
查看: 4690|回复: 6

lnmp安装完之后正常数据库重启之后mysql启动错误

[复制链接]
发表于 2016-4-21 10:45:57 | 显示全部楼层 |阅读模式

安装之后没问题重启了2次就数据库报错了。。

sudo /bin/lnmp status
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              http://lnmp.org              |
+-------------------------------------------+
nginx (pid 4427 4425 4424 4423 4422) is running...
php-fpm is runing!
● mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql)
   Active: failed (Result: exit-code) since 四 2016-04-21 10:40:10 CST; 12s ago
  Process: 5165 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)

4月 21 10:40:08 raspberrypi mysql[5165]: Starting MySQL
4月 21 10:40:10 raspberrypi mysql[5165]: ..The server quit without updating PID file (/var/run/mysqld/mysqld....iled!
4月 21 10:40:10 raspberrypi systemd[1]: mysql.service: control process exited, code=exited status=1
4月 21 10:40:10 raspberrypi systemd[1]: Failed to start LSB: start and stop MySQL.
4月 21 10:40:10 raspberrypi systemd[1]: Unit mysql.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-4-21 10:53:50 | 显示全部楼层

日志



160421 10:04:05 mysqld_safe mysqld from pid file /usr/local/mysql/var/raspberrypi.pid ended
160421 10:04:13 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
160421 10:04:14 InnoDB: The InnoDB memory heap is disabled
160421 10:04:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160421 10:04:14 InnoDB: Compressed tables use zlib 1.2.8
160421 10:04:14 InnoDB: Initializing buffer pool, size = 16.0M
160421 10:04:14 InnoDB: Completed initialization of buffer pool
160421 10:04:14 InnoDB: highest supported file format is Barracuda.
160421 10:04:58  InnoDB: Waiting for the background threads to start
160421 10:04:59 InnoDB: 5.5.42 started; log sequence number 1595675
160421 10:04:59 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
160421 10:04:59 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
160421 10:04:59 [Note] Server socket created on IP: '0.0.0.0'.
160421 10:04:59 [Note] Event Scheduler: Loaded 0 events
160421 10:04:59 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.42-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
160421 10:06:44 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:06:54 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:07:08 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:07:10 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:18:47 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:18:48 [Warning] IP address '192.192.12.44' could not be resolved: Temporary failure in name resolution
160421 10:24:41 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown

160421 10:24:41 [Note] Event Scheduler: Purging the queue. 0 events
160421 10:24:43 [Warning] /usr/local/mysql/bin/mysqld: Forcing close of thread 12  user: 'stockcat'

160421 10:24:43 [Warning] /usr/local/mysql/bin/mysqld: Forcing close of thread 11  user: 'stockcat'

160421 10:24:43 [Warning] /usr/local/mysql/bin/mysqld: Forcing close of thread 8  user: 'stockcat'

160421 10:24:43 [Warning] /usr/local/mysql/bin/mysqld: Forcing close of thread 7  user: 'stockcat'

160421 10:24:45  InnoDB: Starting shutdown...
160421 10:24:51  InnoDB: Shutdown completed; log sequence number 1706477
160421 10:24:51 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

160421 10:24:51 mysqld_safe mysqld from pid file /usr/local/mysql/var/raspberrypi.pid ended
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-4-21 11:27:50 | 显示全部楼层

-- Logs begin at 四 2016-04-21 11:11:14 CST, end at 四 2016-04-21 11:21:05 CST. --
4月 21 11:20:22 raspberrypi mysql[6571]: ..The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
4月 21 11:20:22 raspberrypi systemd[1]: mysql.service: control process exited, code=exited status=1
4月 21 11:20:22 raspberrypi systemd[1]: Failed to start LSB: start and stop MySQL.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-4-21 11:37:04 | 显示全部楼层



可能是通过apt或yum安装上mysql-client之类的包了
可以rpm -qa|grep mysql 或 dpkg -l|grep mysql 进行查看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-4-21 12:01:55 | 显示全部楼层

pi@raspberrypi:/usr/local$ sudo  dpkg -l|grep mysql
ii  libmysqlclient18:armhf               5.5.44-0+deb8u1                   armhf        MySQL database client library
ii  mysql-common                         5.5.44-0+deb8u1                   all          MySQL database common files, e.g. /etc/mysql/my.cnf
ii  python-mysqldb                       1.2.3-2.1                         armhf        Python interface to MySQL

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

 楼主| 发表于 2016-4-21 12:02:16 | 显示全部楼层

这个会有影响吗。。
发表于 2016-4-21 17:17:03 | 显示全部楼层

回复 5# 的帖子


这些包会影响mysql的运行,可以直接删掉/etc/mysql/my.cnf试试,但可能还会有其他影响,最好是直接卸载掉
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 16:04 , Processed in 0.027633 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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