Ubuntu WP Crashing: [ERROR] Unknown/unsupported storage engine: InnoDB

Posted December 29, 2013 19.2k views
This seems to be what is causing my droplet to crash. It's located at Ubuntu WP Crashing: [ERROR] Unknown/unsupported storage engine: InnoDB Keeps appearing in the MySQL logs whenever it crashes. I already have 2GB memory so it's not a memory issue. Tried changing it to MySIAM, which didn't help. You can check logs here:

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.

Submit an Answer
13 answers
131227  9:09:22 InnoDB: Fatal error: cannot allocate memory for the buffer pool

It's running out of memory. Try stopping MySQL and running
free -m
What does that command output?

Try adding swap:
by Etel Sverdlov
Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04
Which web server are you using? Apache or Nginx?
Hi Kamal, Currently, 1.1GB free with MySQL enabled so I don't think is a permanent fix or an efficient one. Pablo, Apache.
How much traffic do you get? Apache uses up a lot of memory if there are a lot of concurrent connections.

Did you add swap to your droplet?
It can range from 200 visitors to a thousand each day, but that may increase soon. 2GB of memory should be plenty for that type of traffic though. What amount of memory would you recommend for 10,000 visitors/day?
That depends on a lot of factors: the webserver you are using, the app you're running, the database engine you're running (check out, the load on your droplet, etc.

Apache seems to be using a lot of memory so try switching to nginx instead:
by Etel Sverdlov
Have you been thinking of making the switch? Here's our article on moving from from MySQL to MariaDB.
"2GB of memory should be plenty for that type of traffic though."

Wrong. Even users on Amazon Web Services have experienced the same problem as you with Apache running on a 2 GB VPS. Dump Apache (like the inventors of WordPress did in 2008) and go with Nginx.
I have the same problem as you. so nginx is the solution?
Your problem has nothing to do with Apache (though it can hog memory). If you're not using innoDB, it doesn't need to be loaded in, and it will cause memory problems if it is.

1. Find your my.cnf file (the MySQL config). It will live in /etc/mysql/my.conf or in /etc/my.conf

2. Assuming you are using myisam, add these two lines:


3. Restart mysql: sudo service mysqld restart

90% of the time that will fix it. If not, let us know and there are some other edge cases that could be tried.

Just installed the LAMP stack on Ubuntu 14 and having the same problem, MySQL don’t restart, same error.. after some googling it worked for me:

service mysql stop
service mysql start
Previous 1 2 Next