启动时:Starting MySQL………………….. ERROR! The server quit without updating PID file (/home/mysql/data/**.**.pid).
log日志:
151130 10:47:04 mysqld_safe Starting mysqld daemon with databases from /home/mysql/data
151130 10:47:10 InnoDB: The InnoDB memory heap is disabled
151130 10:47:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151130 10:47:10 InnoDB: Compressed tables use zlib 1.2.3
151130 10:47:19 InnoDB: Initializing buffer pool, size = 12.0G
InnoDB: mmap(13186891776 bytes) failed; errno 12
151130 10:47:19 InnoDB: Completed initialization of buffer pool
151130 10:47:19 InnoDB: Fatal error: cannot allocate memory for the buffer pool
151130 10:47:19 [ERROR] Plugin “InnoDB” init function returned error.
151130 10:47:19 [ERROR] Plugin “InnoDB” registration as a STORAGE ENGINE failed.
151130 10:47:19 [ERROR] Unknown/unsupported storage engine: InnoDB
151130 10:47:19 [ERROR] Aborting
151130 10:47:19 [Note] /home/mysql/bin/mysqld: Shutdown complete
151130 10:47:20 mysqld_safe mysqld from pid file /home/mysql/data/**.**.pid ended
log日志:
151130 10:47:04 mysqld_safe Starting mysqld daemon with databases from /home/mysql/data
151130 10:47:10 InnoDB: The InnoDB memory heap is disabled
151130 10:47:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151130 10:47:10 InnoDB: Compressed tables use zlib 1.2.3
151130 10:47:19 InnoDB: Initializing buffer pool, size = 12.0G
InnoDB: mmap(13186891776 bytes) failed; errno 12
151130 10:47:19 InnoDB: Completed initialization of buffer pool
151130 10:47:19 InnoDB: Fatal error: cannot allocate memory for the buffer pool
151130 10:47:19 [ERROR] Plugin “InnoDB” init function returned error.
151130 10:47:19 [ERROR] Plugin “InnoDB” registration as a STORAGE ENGINE failed.
151130 10:47:19 [ERROR] Unknown/unsupported storage engine: InnoDB
151130 10:47:19 [ERROR] Aborting
151130 10:47:19 [Note] /home/mysql/bin/mysqld: Shutdown complete
151130 10:47:20 mysqld_safe mysqld from pid file /home/mysql/data/**.**.pid ended
解决方案
50