It appears to be a permissions issue concerning MySQL's temporary folder. If you encounter Errcode 13 (signifying "Permission denied") while starting mysqld, it indicates that the server lacks the necessary privileges to access the data directory or its contents. In such cases, adjust the permissions for the affected files and directories to grant the server appropriate access rights.
To resolve the aforementioned issue, please follow the steps below:
Step 1: Show File Name Extensions
Step 2: Navigate to Temporary Folder
- Open File Explorer.
- Go to C:\Users\USER\AppData\Local\Temp
- Delete All Temporary Files.
Step 3: Create New Text File
- Right-click in the temporary folder.
- Select "New" → "Text Document".
- Name the new file exactly as the problematic file (e.g., "#sql_16d4_0.MYI").
Step 4: Set Proper Permissions
- Right-click on the temporary folder (C:\Users\USER\AppData\Local\Temp).
- Select "Properties" from the context menu.
- Go to the "Security" tab.
- Click on "Edit" to change permissions.
- Ensure that the folder has "Full control" or "Everyone" permissions.
- Click "Apply" and then "OK" to save the changes.
Step 5: Verify Issue Resolution
- Restart the system and check.
Now, verify whether the issue persists after opening the software. Hopefully, the problem does not recur.