Check your space left on the device

解决方案 »

  1.   

    http://www-jp.mysql.com/news-and-events/newsletter/2003-10/a0000000249.htmlWhat is error 28 and how can I avoid it?Using the command line tool perror you can find out, what the error 28 means.> perror 28
    Error code 28: No space left on deviceIf you get his error, you need to check all filesystems where MySQL operates. It may be single filesystem or as we recommend you can have datadir, tmpdir and log files split into dedicated filesystems. MySQL often creates temporary tables for some queries - most of them are placed in tmpdir, but some into database directory (e.g. ALTER TABLE). You must ensure, that there is enough free disk space available for MySQL.You can check out, that environment variables for MySQL are properly set.Check the value of tmp_table_size:mysql> show variables like "tmp_table_size";
    +----------------+----------+
    | Variable_name | Value |
    +----------------+----------+
    | tmp_table_size | 33554432 |
    +----------------+----------+This tells, what is the limit, when reached, in-memory temporary tables will automatically be converted to a disk-based MyISAM table.Then you need to find out, where the 'tmpdir' pointsmysql> show variables like "tmpdir";
    +---------------+-------------+
    | Variable_name | Value |
    +---------------+-------------+
    | tmpdir | /tmp/mysql/ |
    +---------------+-------------+And check, that there is plenty of space available in that device.
      

  2.   

    多谢LouisXIV(夜游神),我用show variables like "tmpdir";看了,结果 value是空的,那可能默认就是C:\windows\temp了,我在环境变量里改成了E:\TEMP,再试试,如果成了就结铁。