title: Linux: MySQL: how to use a mysql databases on a mounted NTFS as mysql database in linux?
body: <p>i wanna use databases in <em>D:\xampp\mysql\data</em> in my linux mysql without moving it. so i can work on them from both linux and windows</p>
  
  <p>here is what i did:</p>
  
  <pre><code># mount -t ntfs -o uid=mysql,gid=mysql,dmask=002,fmask=113 /dev/sda5 /media/public/
  # cd /var/lib/mysql
  # ln /media/public/xampp/mysql/data/my_db -s
  # chown -R mysql:mysql /var/lib/mysql/my_db
  </code></pre>
  
  <p>but mysql cannot read the database tables</p>
  
  <pre><code>use my_db
  show tables
  </code></pre>
  
  <p>gives error: mysql cannot read the directory './my_db'</p>
  
  <p>it seems this is a permission issue. what should i do?</p>
  
  <p><strong>PS</strong>: there is only one machine with two operating systems, Windows and Linux.
  and i want to use the same directory as <code>datadir</code> when i am in Windows or Linux.</p>
  
  <p><strong>PS</strong>: i tried <code>ntfs-3g</code>. now mound partition and all it's content ownership is <code>mysql:mysql</code>. the /var/lib/mysql/my_db is <code>mysql:mysql</code> too. but i still got the following error on <code>show tables</code></p>
  
  <p>ERROR 1018 (HY000): Can't read dir of './my_db/' (errorno: 13)</p>