MySQL errcode:28 error prompt workaround

Source: Internet
Author: User
Tags log log disk usage
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.