Question

I can not restart mysql:

  • Posted on February 8, 2014
  • dggbcnAsked by dggbcn

I can not restart mysql:

sudo service mysql restart stop: Unknown instance: start: Job failed to start

sudo -u mysql mysqld

140208 10:17:11 [Note] Plugin ‘FEDERATED’ is disabled. 140208 10:17:11 InnoDB: The InnoDB memory heap is disabled 140208 10:17:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140208 10:17:11 InnoDB: Compressed tables use zlib 1.2.3.4 140208 10:17:11 InnoDB: Initializing buffer pool, size = 4.0G InnoDB: mmap(4395630592 bytes) failed; errno 12 140208 10:17:11 InnoDB: Completed initialization of buffer pool 140208 10:17:11 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140208 10:17:11 [ERROR] Plugin ‘InnoDB’ init function returned error. 140208 10:17:11 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. 140208 10:17:11 [ERROR] Unknown/unsupported storage engine: InnoDB 140208 10:17:11 [ERROR] Aborting

140208 10:17:11 [Note] mysqld: Shutdown complete


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Thank you Joachim and DGGBCN, I solved with command sudo -u mysql mysqld

Thank you very much Joachim Fermstad

It seems it can’t initialize the InnoDB storage engine because it can’t allocate the 4GB buffer pool (innodb_buffer_pool_size parameter in my.cnf). <br>If you don’t have enough memory in the machine you probably need to either upgrade the machine or lower the limit.