title: MYSQL django test error: django.db.utils.InternalError: (7, "Error on rename of
body: <p>I am running a django 1.9.6 app with MYSQL5.7 on IIS 8.5</p>
  
  <p>When i run the python manage.py test command I get the following error message:</p>
  
  <p><strong><em>django.db.utils.InternalError: (7, "Error on rename of '.\test_\#sql-95c_9a.frm' to '.\test_\home_mytable.frm' (Errcode: 13 - Permission denied)")</em></strong></p>
  
  <p>did test with -v 3 and it throws this error when running the migration files (not always on the same one).</p>
  
  <p>I have granted necessary permissions on this folder C:\ProgramData\MySQL\MySQL Server 5.7\Data</p>
  
  <p>any pointers on how to solve this error? thanks!</p>