2017-01-22 22:37:22 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.29) starting as process 2097 ...
2017-01-22 22:37:22 2097 [Note] Plugin 'FEDERATED' is disabled.
2017-01-22 22:37:22 2097 [Note] InnoDB: Using atomics to ref count buffer pool pages
2017-01-22 22:37:22 2097 [Note] InnoDB: The InnoDB memory heap is disabled
2017-01-22 22:37:22 2097 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-01-22 22:37:22 2097 [Note] InnoDB: Memory barrier is not used
2017-01-22 22:37:22 2097 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-01-22 22:37:22 2097 [Note] InnoDB: Using CPU crc32 instructions
2017-01-22 22:37:22 2097 [Note] InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
2017-01-22 22:37:22 2097 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-01-22 22:37:22 2097 [ERROR] Plugin 'InnoDB' init function returned error.
2017-01-22 22:37:22 2097 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-01-22 22:37:22 2097 [ERROR] Unknown/unsupported storage engine: InnoDB
2017-01-22 22:37:22 2097 [ERROR] Aborting
2017-01-22 22:37:22 2097 [Note] Binlog end
上面是日志,请教是什么原因?谢谢
1
gamesbain 2017-01-23 01:09:31 +08:00 via iPhone
应该是内存不够,我也遇到过同样的问题
|
2
jarlyyn 2017-01-23 01:10:25 +08:00
google 搜 InnoDB: mmap(137363456 bytes) failed; errno 12 第一条。
|
5
xiuc001 2017-01-23 07:00:17 +08:00 via iPhone
内存不够吧
|
6
cyr1l 2017-01-23 08:31:03 +08:00 via iPhone
有可能是某些目录的权限问题,用 sudo 运行试试?
|
7
Infernalzero 2017-01-23 08:59:32 +08:00
方案 1 :系统加内存
方案 2 :配置文件里 InnoDB buffer pool size 改小 |