Log a MySQL process crash and fail to restart troubleshooting

Source: Internet
Author: User

Recently the program is running for a few days, suddenly can't access, check the application process is still there. Only the database process is down. Then find the log file to see the following error

 .- -- -  on: -: - 19934[Note] Innodb:initializing buffer pool, size =512.0MInnodb:mmap (137363456bytes) failed; Errno A .- -- -  on: -: - 19934[ERROR] Innodb:cannot Allocate Memory forThe buffer pool .- -- -  on: -: - 19934[ERROR] Plugin'InnoDB'Initfunctionreturned error. .- -- -  on: -: - 19934[ERROR] Plugin'InnoDB'registration as a STORAGE ENGINE failed. .- -- -  on: -: - 19934[ERROR] unknown/Unsupported Storage Engine:innodb .- -- -  on: -: - 19934[ERROR] Aborting

This means that there is not enough memory to create a buffer pool for InnoDB. It turns out that's the reason, and then it's solved. In the/ETC/MY.CNF, set the buffer memory to a smaller point.

Innodb_buffer_pool_size = 128M

Of course, the rich master, can directly ignore this way, plus memory on it.

PS: The default log file is in the MySQL data directory, the file name is the computer name. Err, you can also view show variables like ' log_% ' by this command;

This article is reproduced from the Java Chinese community: https://www.javafm.com/issue/134

Log a MySQL process crash and fail to restart troubleshooting

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.