title: mySQL crashing due to /tmp full of PHP session files ..what to do?
body: <p>I run a fairly busy website that creates lots of session files in the /tmp folder. Recently I started getting this mySQL error:</p>
  
  <pre><code>MySQL said: Can't create/write to file '/tmp/MLX3o6NG' (Errcode: 28 - No space left on device)
  </code></pre>
  
  <p>So I checked with <code>df -i</code> and found:</p>
  
  <p><code>/usr/tmpDSK             262144  262143         1  100% /tmp</code></p>
  
  <p>It looks like the inodes are full. What is the best thing I could do?</p>
  
  <p>Move the PHP session files to another directory? If so, how? The <code>/</code> partition for example has <code>179691356</code> free inodes.</p>