Error
Error Code: 12

MySQL Error 12: Failed to Read Directory

📦 MySQL
📋

Description

MySQL Error 12, 'Can't read dir of', indicates that the MySQL server attempted to access or list the contents of a specified directory but was unable to do so. This error typically occurs when MySQL lacks the necessary operating system permissions to read the directory, or if the directory path is incorrect, missing, or corrupted.
💬

Error Message

Can't read dir of '%s' (OS errno %d - %s)
🔍

Known Causes

4 known causes
⚠️
Incorrect Directory Permissions
The operating system user running the MySQL server process lacks the necessary read and execute permissions for the specified directory or its parent directories.
⚠️
Missing or Incorrect Directory Path
The directory that MySQL is attempting to read either does not exist on the file system or the path specified in the MySQL configuration is incorrect.
⚠️
Incorrect Directory Ownership
The directory is owned by a different user or group than the one MySQL expects, potentially preventing access even if general permissions seem open.
⚠️
File System Corruption
Underlying file system issues or corruption might prevent the operating system from allowing read access to the directory, even if permissions appear correct.
🛠️

Solutions

Coming Soon

Detailed step-by-step solutions for this error are being prepared. In the meantime, try these general troubleshooting tips:

General Troubleshooting Tips

  • Check the error message carefully for specific details
  • Review recent changes that might have caused the error
  • Search for the exact error code in the official documentation
  • Check log files for additional context
  • Try restarting the application or service
🔗

Related Errors

5 related errors