VPS侦探论坛

 找回密码
 注册
查看: 3561|回复: 1

mysql无法启动

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

启动时错误提示:
Starting MySQL. ERROR! The server quit without updating PID file



错误日志:
  1. 160921 18:45:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
  2. 2016-09-21 18:45:38 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.33-log) starting as process 2937 ...
  3. 2016-09-21 18:45:38 2937 [Note] Plugin 'FEDERATED' is disabled.
  4. 2016-09-21 18:45:38 2937 [Note] InnoDB: Using atomics to ref count buffer pool pages
  5. 2016-09-21 18:45:38 2937 [Note] InnoDB: The InnoDB memory heap is disabled
  6. 2016-09-21 18:45:38 2937 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  7. 2016-09-21 18:45:38 2937 [Note] InnoDB: Memory barrier is not used
  8. 2016-09-21 18:45:38 2937 [Note] InnoDB: Compressed tables use zlib 1.2.3
  9. 2016-09-21 18:45:38 2937 [Note] InnoDB: Using CPU crc32 instructions
  10. 2016-09-21 18:45:38 2937 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  11. InnoDB: mmap(137363456 bytes) failed; errno 12
  12. 2016-09-21 18:45:38 2937 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
  13. 2016-09-21 18:45:38 2937 [ERROR] Plugin 'InnoDB' init function returned error.
  14. 2016-09-21 18:45:38 2937 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  15. 2016-09-21 18:45:38 2937 [ERROR] Unknown/unsupported storage engine: InnoDB
  16. 2016-09-21 18:45:38 2937 [ERROR] Aborting

  17. 2016-09-21 18:45:38 2937 [Note] Binlog end
  18. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'partition'
  19. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
  20. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'ARCHIVE'
  21. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
  22. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
  23. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
  24. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
  25. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
  26. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
  27. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
  28. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
  29. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
  30. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
  31. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
  32. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
  33. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
  34. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_DELETED'
  35. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
  36. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_METRICS'
  37. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
  38. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
  39. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
  40. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
  41. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
  42. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
  43. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMPMEM'
  44. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMP_RESET'
  45. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_CMP'
  46. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
  47. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_LOCKS'
  48. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'INNODB_TRX'
  49. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'BLACKHOLE'
  50. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'CSV'
  51. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'MyISAM'
  52. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'MRG_MYISAM'
  53. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'MEMORY'
  54. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'sha256_password'
  55. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'mysql_old_password'
  56. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'mysql_native_password'
  57. 2016-09-21 18:45:38 2937 [Note] Shutting down plugin 'binlog'
  58. 2016-09-21 18:45:38 2937 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

  59. 160921 18:45:38 mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-9-21 19:28:34 | 显示全部楼层


InnoDB: mmap(137363456 bytes) failed; errno 12
内存不够用了,你机器什么配置?

/etc/my.cnf 里 [mysqld]段里加上
performance_schema_max_table_instances=400
后应该会降低部分内存消耗
再吧innodb_buffer_pool_size 调小一些
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-16 21:29 , Processed in 0.025028 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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