MySQL test environment encountered mmap (xxx bytes) failed; errno 12 Solutions

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.