title: Creating database access denied
body: <p>Here is what I've done:</p>
  
  <pre><code>user@name /my/path # mysql -u root -p&lt;myPassword&gt;  
  mysql&gt; create database spy;
  </code></pre>
  
  <p>But it throws:</p>
  
  <blockquote>
    <p>ERROR 13 (HY000): Can't get stat of './spy' (Errcode: 13 - Permission denied)</p>
  </blockquote>
  
  <p>How can I fix it?</p>
  
  <hr>
  
  <p>Noted that this:</p>
  
  <pre><code>mysql&gt; GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';
  </code></pre>
  
  <p>Throws:</p>
  
  <blockquote>
    <p>ERROR 29 (HY000): File './mysql/user.MYD' not found (Errcode: 13 - Permission denied)</p>
  </blockquote>