MySQL error writing file \ ' xxx\ ' (errcode:28) for a number of reasons, let me summarize some common reasons for causing errcode:28 errors and solutions.
Problem one, is the log log too large also causes the MySQL prompt error writing file ' xxx ' (errcode:28) wrong, the solution is very simple.
1, clean up the disk, free space;
2, SQL statement query the original table data is too large, optimized SQL query statement;
3, permissions problems, resulting in read and write errors, view folder read and write permissions;
Question Two,
Perror 28
Error Code 28:no space left on device
SQL statement execution error: SELECT title,gid from Blog_blog WHERE Date < 1246200383 and hide = ' n ' and type= ' blog ' ORDER by date DESC LIM IT 1
Error writing file ' C:windowstempmy9b6f.tmp ' (errcode:28)
Workaround:
1. Releasing C:windowstemp space
2. Because the original table is too large, the temporary table generated at the time of the query is too large to make an error.
Solution. Restart MySQL, and then add where to the three-segment query to avoid full-table scanning.
Question three,
Error writing file '/TMP/MYIS0UPV ' (errcode:28), there may be no more space in the MySQL temp directory.
You can use DF-LH to view disk usage.
Try to change the path of My.ini Tmp_dir, restart MySQL, the problem should be resolved.
MySQL errcode:28 error prompt workaround