View MySQL Logs
Innodb:initializing buffer pool, size =128.0MInnodb:mmap (137363456bytes) failed; Errno Ainnodb:completed Initialization of buffer poolinnodb:fatal Error:cannot allocate memory forThe buffer Pool[error] Plugin'InnoDB'Initfunctionreturned error. [ERROR] Plugin'InnoDB'registration as a STORAGE ENGINE failed. [ERROR] Unknown/Unsupported storage engine:innodb[error] aborting
Too few caches.
free-m total used free shared buffers Cachedmem: 1152 464 687 0 8 92 -/+ buffers/cache: 363 789Swap: 199 194 5
Increase cache
$DD if=/dev/zero of=/swapfile bs=1m count=1024x768#增加1G的SWAP进去 $Mkswap/swapfile$Swapon/swapfile$ FreeTotal used Freeshared buffers Cachedmem:608476 601432 7044 0 824 88752-/+ Buffers/cache:511856 96620Swap:1048572 0 1048572
It is not recommended to write swapon to/etc/fstab here, it is more secure to write directly to/etc.rc.local.
Start resolution ...
Originating From: http://www.cnblogs.com/olinux/p/5144205.html
MySQL test environment encountered mmap (xxx bytes) failed; errno 12 Solutions