mysql 1114_mysql返回#1114 - The table 'xxxx'is full解决方法_mysql_爱周末

发现执行mysql的 REPLACE INTO 的时候mysql返回 #1114 – The table ‘xxxx’ is full

这个错误。

以前没有遇到过,于是查找资料解决这个问题。得知是由于内存表的大小超过了规定的范围,于是搜索解决方法,网上提到的有两种解决方法,

一种是修改 my-innodb-heavy-4G.ini文件里的tmp_table_size参数,然后重启mysql服务。

另外一种是修改max_heap_table_size参数。

[root@localhost etc]# vi /etc/rc.d/init.d/mysql

找到

$bindir/mysqld_safe –datadir=$datadir –pid-file=$pid_file >/dev/null 2>&1 &

修改为

$bindir/mysqld_safe –datadir=$datadir –pid-file=$pid_file -O tmp_table_size=64M -O max_heap_table_size=32M >/dev/null 2>&1 &

重启mysql

[root@localhost etc]# /usr/bin/mysqladmin -u root -p shutdown

Enter password:

[root@localhost etc]#/etc/init.d/mysql start

[root@localhost etc]#mysql

查看是否己修改

mysql> show variables like ‘%max_heap_table_size%';

+———————+———-+

| Variable_name | Value |

+———————+———-+

| max_heap_table_size | 33553408 |

+———————+———-+

1 row in set (0.00 sec)

mysql> show variables like ‘%tmp_table_size%';

+—————-+———-+

| Variable_name | Value |

+—————-+———-+

| tmp_table_size | 67108864 |

+—————-+———-+

1 row in set (0.00 sec)

己经修改成功!

http://blog.sina.com.cn/s/blog_8e743a770101iwzt.html

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值