Details
The data directory is the location of the MySQL databases.
NOTE : Update MYSQL_DATA to the appropriate value for your local environment.
Solution
Modify permissions for the ‘datadir’ to not include inheritance, like the following:
administrators:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’
creator owner:
+ Apply To: ‘subfolders and files only’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’
mysql or NETWORK SERVICE:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’
system:
+ Apply To: ‘this folder, subfolders and files’
|- Inheritance: ‘not inherited’
|- Allow: ‘full control’
Supportive Information
The following resource is also helpful.
This control applies to the following type of system Windows.