解决:show create table TABLENAME;得知engine类型为memory;

    

    vim /etc/mysql/my.cf在[mysqld]下添加/修改两行(如果还不行的话可以增大数值):

    tmp_table_size = 256M

    max_heap_table_size = 256M

    

    service mysql restart


原因:因为表的engine类型为memory,其中mysql的memory engine中有max_heap_table_size的限制,数据稍多就满了。


参考:http://www.cnblogs.com/ccdc/p/4119465.html

    http://blog.csdn.net/kevon_sun/article/details/7967728