MySQL InnoDB Error

Posted on 2014-01-21
Medium Priority
Last Modified: 2014-01-21
We have recently moved a WordPress/ecommerce website to our Cpanel hosting environment and came across a new error today (site has been on our server for 5 days)

The website goes down unexpectedly and displays this error in the browser:
Error while connecting to MySQL: Couldn't connect to localhost:3306/tcp: IO::Socket::INET: connect: Connection refused

We have tracked it down to InnoDB, but we have no idea why this is happening or how to fix it.

140121 11:25:19 InnoDB: The InnoDB memory heap is disabled
140121 11:25:19 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140121 11:25:19 InnoDB: Compressed tables use zlib 1.2.3
140121 11:25:19 InnoDB: Using Linux native AIO
140121 11:25:19 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
140121 11:25:19 InnoDB: Completed initialization of buffer pool
140121 11:25:19 InnoDB: Fatal error: cannot allocate memory for the buffer pool
140121 11:25:19 Plugin 'InnoDB' init function returned error.
140121 11:25:19 Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140121 11:25:19 Unknown/unsupported storage engine: InnoDB
140121 11:25:19 Aborting

140121 11:25:19 [Note] /usr/sbin/mysqld: Shutdown complete

140121 11:25:19 mysqld_safe mysqld from pid file /var/lib/mysql/festaparties.topgeartechnologies.com.pid ended
140121 12:55:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140121 12:55:47 [Note] Plugin 'FEDERATED' is disabled.
140121 12:55:47 InnoDB: The InnoDB memory heap is disabled
140121 12:55:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140121 12:55:47 InnoDB: Compressed tables use zlib 1.2.3
140121 12:55:47 InnoDB: Using Linux native AIO
140121 12:55:47 InnoDB: Initializing buffer pool, size = 128.0M
140121 12:55:47 InnoDB: Completed initialization of buffer pool
140121 12:55:47 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
140121 12:55:47 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
Question by:TopGearTech
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 33

Accepted Solution

snoyes_jw earned 2000 total points
ID: 39798068
Error 12 means not enough space. You're too low on memory.

128M isn't too large for a buffer pool, so check what other things might be set too large (like the query cache or something), and maybe talk with your provider about how much memory you are allocated.

Author Comment

ID: 39798303
Thanks for your reply.  I'm self-hosting, couldn't I just increase buffer pool?

Author Closing Comment

ID: 39798717
Thank You!

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question