VPS侦探论坛

 找回密码
 注册
查看: 4178|回复: 2

求助军哥,lnmp1.2的mysql突然挂了,附上日志,求解决

[复制链接]
发表于 2015-10-31 09:46:58 | 显示全部楼层 |阅读模式

  1. 151031 04:01:36 mysqld_safe Number of processes running now: 0
  2. 151031 04:01:37 mysqld_safe mysqld restarted
  3. 2015-10-31 04:01:39 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  4. 2015-10-31 04:01:39 8079 [Note] Plugin 'FEDERATED' is disabled.
  5. 2015-10-31 04:01:39 7f302b5e8720 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
  6. 2015-10-31 04:01:39 8079 [Note] InnoDB: Using atomics to ref count buffer pool pages
  7. 2015-10-31 04:01:39 8079 [Note] InnoDB: The InnoDB memory heap is disabled
  8. 2015-10-31 04:01:39 8079 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  9. 2015-10-31 04:01:39 8079 [Note] InnoDB: Memory barrier is not used
  10. 2015-10-31 04:01:39 8079 [Note] InnoDB: Compressed tables use zlib 1.2.3
  11. 2015-10-31 04:01:39 8079 [Note] InnoDB: Using CPU crc32 instructions
  12. 2015-10-31 04:01:39 8079 [Note] InnoDB: Initializing buffer pool, size = 16.0M
  13. 2015-10-31 04:01:39 8079 [Note] InnoDB: Completed initialization of buffer pool
  14. 2015-10-31 04:01:40 8079 [Note] InnoDB: Highest supported file format is Barracuda.
  15. 2015-10-31 04:01:40 8079 [Note] InnoDB: The log sequence numbers 4607677 and 4607677 in ibdata files do not match the log sequence number 4880103 in the ib_logfiles!
  16. 2015-10-31 04:01:40 8079 [Note] InnoDB: Database was not shutdown normally!
  17. 2015-10-31 04:01:40 8079 [Note] InnoDB: Starting crash recovery.
  18. 2015-10-31 04:01:40 8079 [Note] InnoDB: Reading tablespace information from the .ibd files...
  19. 2015-10-31 04:01:40 8079 [Note] InnoDB: Restoring possible half-written data pages
  20. 2015-10-31 04:01:40 8079 [Note] InnoDB: from the doublewrite buffer...
  21. InnoDB: Last MySQL binlog file position 0 624432200, file name mysql-bin.000012
  22. 2015-10-31 04:01:40 8079 [Note] InnoDB: 128 rollback segment(s) are active.
  23. 2015-10-31 04:01:40 8079 [Note] InnoDB: Waiting for purge to start
  24. 2015-10-31 04:01:40 8079 [Note] InnoDB: 5.6.23 started; log sequence number 4880103
  25. 2015-10-31 04:01:40 8079 [Note] Recovering after a crash using mysql-bin
  26. 2015-10-31 04:01:48 8079 [Note] Starting crash recovery...
  27. 2015-10-31 04:01:48 8079 [Note] Crash recovery finished.
  28. 2015-10-31 04:01:48 8079 [Note] Server hostname (bind-address): '*'; port: 3306
  29. 2015-10-31 04:01:48 8079 [Note] IPv6 is available.
  30. 2015-10-31 04:01:48 8079 [Note]   - '::' resolves to '::';
  31. 2015-10-31 04:01:48 8079 [Note] Server socket created on IP: '::'.
  32. 2015-10-31 04:01:48 8079 [Note] Event Scheduler: Loaded 0 events
  33. 2015-10-31 04:01:48 8079 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
  34. Version: '5.6.23-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
  35. 151031 04:03:28 mysqld_safe Number of processes running now: 0
  36. 151031 04:03:28 mysqld_safe mysqld restarted
  37. 2015-10-31 04:03:28 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  38. 2015-10-31 04:03:28 8238 [Note] Plugin 'FEDERATED' is disabled.
  39. 2015-10-31 04:03:28 7f9a6f9ba720 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
  40. 2015-10-31 04:03:28 8238 [Note] InnoDB: Using atomics to ref count buffer pool pages
  41. 2015-10-31 04:03:28 8238 [Note] InnoDB: The InnoDB memory heap is disabled
  42. 2015-10-31 04:03:28 8238 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  43. 2015-10-31 04:03:28 8238 [Note] InnoDB: Memory barrier is not used
  44. 2015-10-31 04:03:28 8238 [Note] InnoDB: Compressed tables use zlib 1.2.3
  45. 2015-10-31 04:03:28 8238 [Note] InnoDB: Using CPU crc32 instructions
  46. 2015-10-31 04:03:28 8238 [Note] InnoDB: Initializing buffer pool, size = 16.0M
  47. 2015-10-31 04:03:28 8238 [Note] InnoDB: Completed initialization of buffer pool
  48. 2015-10-31 04:03:29 8238 [Note] InnoDB: Highest supported file format is Barracuda.
  49. 2015-10-31 04:03:29 8238 [Note] InnoDB: The log sequence numbers 4607677 and 4607677 in ibdata files do not match the log sequence number 4880113 in the ib_logfiles!
  50. 2015-10-31 04:03:29 8238 [Note] InnoDB: Database was not shutdown normally!
  51. 2015-10-31 04:03:29 8238 [Note] InnoDB: Starting crash recovery.
  52. 2015-10-31 04:03:29 8238 [Note] InnoDB: Reading tablespace information from the .ibd files...
  53. 2015-10-31 04:03:29 8238 [Note] InnoDB: Restoring possible half-written data pages
  54. 2015-10-31 04:03:29 8238 [Note] InnoDB: from the doublewrite buffer...
  55. InnoDB: Last MySQL binlog file position 0 624432200, file name mysql-bin.000012
  56. 2015-10-31 04:03:29 8238 [Note] InnoDB: 128 rollback segment(s) are active.
  57. 2015-10-31 04:03:29 8238 [Note] InnoDB: Waiting for purge to start
  58. 2015-10-31 04:03:29 8238 [Note] InnoDB: 5.6.23 started; log sequence number 4880113
  59. 2015-10-31 04:03:29 8238 [Note] Recovering after a crash using mysql-bin
  60. 2015-10-31 04:03:29 8238 [Note] Starting crash recovery...
  61. 2015-10-31 04:03:29 8238 [Note] Crash recovery finished.
  62. 2015-10-31 04:03:29 8238 [Note] Server hostname (bind-address): '*'; port: 3306
  63. 2015-10-31 04:03:29 8238 [Note] IPv6 is available.
  64. 2015-10-31 04:03:29 8238 [Note]   - '::' resolves to '::';
  65. 2015-10-31 04:03:29 8238 [Note] Server socket created on IP: '::'.
  66. 2015-10-31 04:03:29 8238 [Note] Event Scheduler: Loaded 0 events
  67. 2015-10-31 04:03:29 8238 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
  68. Version: '5.6.23-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
  69. 151031 04:06:35 mysqld_safe Number of processes running now: 0
  70. 151031 04:06:35 mysqld_safe mysqld restarted
  71. 2015-10-31 04:06:36 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
  72. 2015-10-31 04:06:36 8465 [Note] Plugin 'FEDERATED' is disabled.
  73. 2015-10-31 04:06:36 7fcc2c177720 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
  74. 2015-10-31 04:06:36 8465 [Note] InnoDB: Using atomics to ref count buffer pool pages
  75. 2015-10-31 04:06:36 8465 [Note] InnoDB: The InnoDB memory heap is disabled
  76. 2015-10-31 04:06:36 8465 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  77. 2015-10-31 04:06:36 8465 [Note] InnoDB: Memory barrier is not used
  78. 2015-10-31 04:06:36 8465 [Note] InnoDB: Compressed tables use zlib 1.2.3
  79. 2015-10-31 04:06:36 8465 [Note] InnoDB: Using CPU crc32 instructions
  80. 2015-10-31 04:06:36 8465 [Note] InnoDB: Initializing buffer pool, size = 16.0M
  81. 2015-10-31 04:06:36 8465 [Note] InnoDB: Completed initialization of buffer pool
  82. 151031 04:06:36 mysqld_safe mysqld from pid file /usr/local/mysql/var/DreamSever.pid ended
复制代码


上面是错误信息,

因为每天4点我都定时执行数据库全部备份操作,之前没问题,就今天突然出错了!
备份脚本是:

  1. #使用命令导出SQL数据库,并且按数据库分个压缩
  2. for db in `mysql -u$MYSQL_USER -p$MYSQL_PASS -B -N -e 'SHOW DATABASES' | xargs`; do
  3.     (mysqldump -u$MYSQL_USER -p$MYSQL_PASS ${db} --events --skip-lock-tables | gzip -9 - > ${db}.sql.gz)
  4. done
复制代码




请军哥看下是那里的问题导致的,万分感谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-10-31 13:39:28 | 显示全部楼层


检查一下数据库目录权限

有监控没,崩溃时内存占用多少

前面都没问题,可以尝试删除/usr/local/mysql/var/下的ib_logfile0、ib_logfile1、ibdata1,然后重启试试


还不行可以尝试/etc/my.cnf 里加[mysqld]下面添加上
innodb_force_recovery = 3
试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2015-10-31 16:47:49 | 显示全部楼层

数据库占用内存挺高!

本帖子中包含更多资源

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

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-17 08:33 , Processed in 0.026511 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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