title: MySQL keeps running out of memory with Wordpress, how much memory do I need?
body: <p>I have been experiencing MySQL crashing recently and really need to figure out what I need to do to get this to stop.</p>
  
  <p>I have a 2GB Digital Ocean server running the following:</p>
  
  <ul>
  <li>Ubuntu 14.04 </li>
  <li>PHP v5.5.9 </li>
  <li>Apache v20120211</li>
  <li>MySQL v5.5.43</li>
  <li>Wordpress v4.2</li>
  </ul>
  
  <p>I also have 2GB of swap.</p>
  
  <p>The last time MySQL crashed this was in my error log</p>
  
  <p><a href="http://laravel.io/bin/E304E" rel="nofollow">http://laravel.io/bin/E304E</a></p>
  
  <p>The important part seems (to me) to be this </p>
  
  <pre><code>InnoDB: Fatal error: cannot allocate memory for the buffer pool
  </code></pre>
  
  <p>I am getting about 2000 page views per day. I thought this should be easily enough memory to run the site.</p>
  
  <p>Can anyone give me some ideas what I can do or what I definitely need to do to stop this happening?</p>
  
  <p>Thanks</p>