title: error: Can't create/write to file '/tmp/#sql_439_0.MYI' (Errcode: 28)
body: <p>My site is broken, from last few days I'm continuously getting mysql error.
  In starting I was receiving this error almost everyday, which was fixed by doing some changes in  <code>my.cnf</code> file.</p>
  
  <blockquote>
    <p>SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</p>
  </blockquote>
  
  <p>But from last few days I am receiving this error:</p>
  
  <blockquote>
    <p>SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_439_0.MYI' (Errcode: 28)
    Solution I tried:</p>
  </blockquote>
  
  <ul>
  <li>changed <code>tmp</code> directory permission to <code>777</code></li>
  <li>add <code>tmpdir=/tmp</code> to my.cnf under [mysqld]</li>
  <li><code>sudo reboot</code> (Temp fix)</li>
  </ul>
  
  <p>I'm afraid to reinstall mysql, as these things are new for me and I don't want to loose any data. 
  Any suggestion will be appreciated.</p>