mysql出现"the table is full"的问题,一般有两个原因:
一 .You are using the MEMORY (HEAP) storage engine; in this case you
need to increase the value of the max_heap_table_size system variable.
See Section 5.1.3, “Server System Variables”.
您使用的是MEMORY(HEAP)存储引擎;在这种情况下,您需要增加max_heap_table_size系统变量的值。于是就修改Mysql的配置文件/etc/my.cnf,在[mysqld]下添加/修改两行:
tmp_table_size = 256M
max_heap_table_size = 256M
系统默认是16M,修改完后重启mysql
二.硬盘空间满了,清理硬盘即可.
在服务器df了一下,果然硬盘空间不够了,已经使用了100%。
追查下来,发现是mysql的日志文件将硬盘撑爆了,有大量的mysql-bin.000XXX之类的日志文件。清除这些日志文件即可。