Home  >  Article  >  Backend Development  >  php mysql Errcode: 28 Ultimate Solution_PHP Tutorial

php mysql Errcode: 28 Ultimate Solution_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:45:291069browse

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:WINDOWSTEMPMY9B6F.tmp' (Errcode: 28)

Solution:

1. Release C:WINDOWSTEMP space

2. Because the original table is too large, the temporary table generated during the query is too large, so an error occurs.
Solution. I restarted mysql, and then added where to query in three sections to avoid a full table scan.

Test results: The first one is useful, the second one makes sense, I haven’t tested it yet, it will be solved after passing the first one, I will study the second one carefully in the future

www.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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn