VPS侦探论坛

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

VPS重启后MYSQL启动不起了求助

[复制链接]
发表于 2016-7-4 09:08:19 | 显示全部楼层 |阅读模式

  1. Usage: /root/lnmp {start|stop|reload|restart|kill|status}
  2. =========================================================================
  3. Stoping LNMP...
  4. Stopping nginx daemon: nginx.
  5. Gracefully shutting down php-fpm . done
  6. ERROR! MySQL server PID file could not be found!
  7. Starting LNMP...
  8. Starting nginx daemon: nginx.
  9. Starting php-fpm  done
  10. Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/var/default.hostname.pid).

  11. Exit code: 1
复制代码



  1. [root /]# ps aux |grep mysq*
  2. root      4239  0.0  0.1   3040  1168 ?        Ss   17:34   0:00 /bin/bash -c cd "/"; ps aux |grep mysq* 2>&1 | head -n 10000; echo
  3. [root /]# kill 4239
  4. /bin/bash: line 0: kill: (4239) - No such process

  5. Exit code: 1
  6. [root /]# service mysql start
  7. Starting MySQL........ ERROR! The server quit without updating PID file (/usr/local/mysql/var/default.hostname.pid).

  8. Exit code: 1
复制代码



  1. It is possible that mysqld could use up to
  2. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 133456 K  bytes of memory
  3. Hope that's ok; if not, decrease some variables in the equation.

  4. Thread pointer: 0x0
  5. Attempting backtrace. You can use the following information to find out
  6. where mysqld died. If you see no messages after this, something went
  7. terribly wrong...
  8. stack_bottom = 0 thread_stack 0x30000
  9. /usr/local/mysql/bin/mysqld(my_print_stacktrace+0x33)[0x838ba93]
  10. /usr/local/mysql/bin/mysqld(handle_fatal_signal+0x432)[0x8280d72]
  11. [0xb7769500]
  12. /lib/libc.so.6(abort+0x17a)[0xb726d3aa]
  13. /usr/local/mysql/bin/mysqld[0x842fef8]
  14. /usr/local/mysql/bin/mysqld[0x8430477]
  15. /usr/local/mysql/bin/mysqld[0x84e64be]
  16. /usr/local/mysql/bin/mysqld[0x84dd1fe]
  17. /usr/local/mysql/bin/mysqld[0x842ed8e]
  18. /usr/local/mysql/bin/mysqld[0x84225d5]
  19. /usr/local/mysql/bin/mysqld[0x84250f7]
  20. /lib/libpthread.so.0(+0x6a49)[0xb774ba49]
  21. /lib/libc.so.6(clone+0x5e)[0xb7323aae]
  22. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
  23. information that should help you find out what is causing the crash.
  24. 160703 17:35:58 mysqld_safe mysqld from pid file /usr/local/mysql/var/default.hostname.pid ended
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-7-4 10:08:40 | 显示全部楼层


错误信息。。。
  1. key_buffer_size=16777216
  2. read_buffer_size=262144
  3. max_used_connections=0
  4. max_threads=151
  5. thread_count=0
  6. connection_count=0
  7. It is possible that mysqld could use up to
  8. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 133456 K  bytes of memory
  9. Hope that's ok; if not, decrease some variables in the equation.

  10. Thread pointer: 0x0
  11. Attempting backtrace. You can use the following information to find out
  12. where mysqld died. If you see no messages after this, something went
  13. terribly wrong...
  14. stack_bottom = 0 thread_stack 0x30000
  15. /usr/local/mysql/bin/mysqld(my_print_stacktrace+0x33)[0x838ba93]
  16. /usr/local/mysql/bin/mysqld(handle_fatal_signal+0x432)[0x8280d72]
  17. [0xb77bd500]
  18. /lib/libc.so.6(abort+0x17a)[0xb72c13aa]
  19. /usr/local/mysql/bin/mysqld[0x842fef8]
  20. /usr/local/mysql/bin/mysqld[0x8430477]
  21. /usr/local/mysql/bin/mysqld[0x84e64be]
  22. 160703 17:58:02 [Note] Event Scheduler: Loaded 0 events
  23. 160703 17:58:02 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
  24. Version: '5.5.28-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
  25. /usr/local/mysql/bin/mysqld[0x84dd1fe]
  26. /usr/local/mysql/bin/mysqld[0x842ed8e]
  27. /usr/local/mysql/bin/mysqld[0x84225d5]
  28. /usr/local/mysql/bin/mysqld[0x84250f7]
  29. /lib/libpthread.so.0(+0x6a49)[0xb779fa49]
  30. /lib/libc.so.6(clone+0x5e)[0xb7377aae]
  31. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
  32. information that should help you find out what is causing the crash.
  33. 160703 17:58:02 mysqld_safe Number of processes running now: 0
  34. 160703 17:58:02 mysqld_safe mysqld restarted
  35. 160703 17:58:02 InnoDB: The InnoDB memory heap is disabled
  36. 160703 17:58:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
  37. 160703 17:58:02 InnoDB: Compressed tables use zlib 1.2.3
  38. 160703 17:58:02 InnoDB: Initializing buffer pool, size = 16.0M
  39. 160703 17:58:02 InnoDB: Completed initialization of buffer pool
  40. 160703 17:58:02 InnoDB: highest supported file format is Barracuda.
  41. InnoDB: The log sequence number in ibdata files does not match
  42. InnoDB: the log sequence number in the ib_logfiles!
  43. 160703 17:58:02  InnoDB: Database was not shut down normally!
  44. InnoDB: Starting crash recovery.
  45. InnoDB: Reading tablespace information from the .ibd files...
  46. InnoDB: Restoring possible half-written data pages from the doublewrite
  47. InnoDB: buffer...
  48. InnoDB: Last MySQL binlog file position 0 5602, file name ./mysql-bin.000126
  49. 160703 17:58:02  InnoDB: Waiting for the background threads to start
  50. 160703 17:58:03 InnoDB: 1.1.8 started; log sequence number 4422896040
  51. 160703 17:58:03 [Note] Recovering after a crash using mysql-bin
  52. 160703 17:58:03 [Note] Starting crash recovery...
  53. 160703 17:58:03 [Note] Crash recovery finished.
  54. 160703 17:58:03 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
  55. 160703 17:58:03 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
  56. 160703 17:58:03 [Note] Server socket created on IP: '0.0.0.0'.
  57. 160703 17:58:03  InnoDB: Assertion failure in thread 2874518384 in file trx0purge.c line 829
  58. InnoDB: Failing assertion: purge_sys->purge_trx_no <= purge_sys->rseg->last_trx_no
  59. InnoDB: We intentionally generate a memory trap.
  60. InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
  61. InnoDB: If you get repeated assertion failures or crashes, even
  62. InnoDB: immediately after the mysqld startup, there may be
  63. InnoDB: corruption in the InnoDB tablespace. Please refer to
  64. InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
  65. InnoDB: about forcing recovery.
  66. 09:58:03 UTC - mysqld got signal 6 ;
  67. This could be because you hit a bug. It is also possible that this binary
  68. or one of the libraries it was linked against is corrupt, improperly built,
  69. or misconfigured. This error can also be caused by malfunctioning hardware.
  70. We will try our best to scrape up some info that will hopefully help
  71. diagnose the problem, but since we have already crashed,
  72. something is definitely wrong and this may fail.

  73. key_buffer_size=16777216
  74. read_buffer_size=262144
  75. max_used_connections=0
  76. max_threads=151
  77. thread_count=0
  78. connection_count=0
  79. It is possible that mysqld could use up to
  80. key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 133456 K  bytes of memory
  81. Hope that's ok; if not, decrease some variables in the equation.

  82. Thread pointer: 0x0
  83. Attempting backtrace. You can use the following information to find out
  84. where mysqld died. If you see no messages after this, something went
  85. terribly wrong...
  86. stack_bottom = 0 thread_stack 0x30000
  87. /usr/local/mysql/bin/mysqld(my_print_stacktrace+0x33)[0x838ba93]
  88. /usr/local/mysql/bin/mysqld(handle_fatal_signal+0x432)[0x8280d72]
  89. [0xb7728500]
  90. /lib/libc.so.6(abort+0x17a)[0xb722c3aa]
  91. /usr/local/mysql/bin/mysqld[0x842fef8]
  92. /usr/local/mysql/bin/mysqld[0x8430477]
  93. /usr/local/mysql/bin/mysqld[0x84e64be]
  94. /usr/local/mysql/bin/mysqld[0x84dd1fe]
  95. /usr/local/mysql/bin/mysqld[0x842ed8e]
  96. /usr/local/mysql/bin/mysqld[0x84225d5]
  97. /usr/local/mysql/bin/mysqld[0x84250f7]
  98. /lib/libpthread.so.0(+0x6a49)[0xb770aa49]
  99. /lib/libc.so.6(clone+0x5e)[0xb72e2aae]
  100. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
  101. information that should help you find out what is causing the crash.
  102. 160703 17:58:03 mysqld_safe mysqld from pid file /usr/local/mysql/var/default.hostname.pid ended
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-7-4 12:12:01 | 显示全部楼层

首先检查硬盘或分区占用情况,不行的话再试试看https://bbs.vpser.net/thread-13040-1-1.html
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-7-4 19:51:36 | 显示全部楼层

回复 3# 的帖子




innodb_force_recovery=6
加上这个 可以正常启动
修复了数据库 有些提示不能直接修复的
去掉innodb_force_recovery=6后 还是 原来那样
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 09:27 , Processed in 0.026775 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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