mysql talbe is full_解决mysql出现“the table is full”的问题

今天中午收到mysql错误日志监控发来的警报,错误日志如下:

101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full

101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full

101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full

101209 13:13:32 [ERROR] /usr/local/mysql/bin/mysqld: The table 'test_1291870945841162' is full

通过查询mysql官方站点:

http://dev.mysql.com/doc/refman/5.0/en/full-table.html 得知:

因为系统是linux,不存在操作系统和文件格式的限制,通过表的名字可以得知,该表应该是个临时表,再说数据库里面也查不到该表。

有这一句话很重要:

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”.

于是就修改Mysql的配置文件/etc/my.cnf,在[mysqld]下添加/修改两行:

tmp_table_size = 256M

max_heap_table_size = 256M

系统默认是16M,别忘记重新启动mysql,你也可以在线动态修改该参数,经过这几天的观察,这个世界安静了许多。

阅读(11207) | 评论(2) | 转发(7) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值