title: Can't create/write to file - Error code 13 in linux
body: <p>Iam trying to create a mysql table in linux with changing data directory to another location. The selected forlder having full permission. But I got an error 'Can't create/write to file'.
   I googled and found that this error related to permission denied. I can change the owner permission of the folder to root using <em>chown</em> command. But it still showing the same error. </p>
  
  <pre><code>mysql&gt; create table test_table( testId int PRIMARY KEY,  testName VARCHAR(20) ) DATA DIRECTORY = '/home/Test/Sample/data';
  
  ERROR 1 (HY000): Can't create/write to file '/home/Test/Sample/data/test_table1.MYD' (Errcode: 13)
  </code></pre>
  
  <p>What I can do??? Please give me any valuable suggestions....</p>