PhpmysqlErrcode: 28 ultimate solution _ PHP Tutorial

Source: Internet
Author: User
PhpmysqlErrcode: 28 The ultimate solution. Perror28Errorcode28: NospaceleftondeviceSQL statement execution error: SELECTtitle, gidFROMblog_blogWHEREdate1246200383andhidenandtypeblogORDERBYdateDESCLIMI 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 LIMIT 1
Error writing file 'C: \ WINDOWS \ TEMP \ MY9B6F. tmp '(Errcode: 28)

Solution:

1. release C: \ WINDOWS \ TEMP \ space

2. because the original table is too large, the temporary table generated during query is too large, so an error occurs.
Solution. Restart mysql and add the where clause to the query to avoid full table scan.

Test results: the first one is useful, and the second one is reasonable. it has not been tested. after the first one, it will be solved. The second one will be well studied later.

Http://www.bkjia.com/PHPjc/320326.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320326.htmlTechArticleperror 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 limi...

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.