mysql返回#1114 – The table ‘xxxx’is full解决方法
發(fā)現(xiàn)執(zhí)行mysql的 REPLACE INTO 的時(shí)候mysql返回 #1114 – The table ‘xxxx’ is full
這個(gè)錯(cuò)誤。
以前沒(méi)有遇到過(guò),于是查找資料解決這個(gè)問(wèn)題。得知是由于內(nèi)存表的大小超過(guò)了規(guī)定的范圍,于是搜索解決方法,網(wǎng)上提到的有兩種解決方法,
一種是修改 my-innodb-heavy-4G.ini文件里的tmp_table_size參數(shù),然后重啟mysql服務(wù)。
另外一種是修改max_heap_table_size參數(shù)。
[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)
己經(jīng)修改成功!
http://blog.sina.com.cn/s/blog_8e743a770101iwzt.html
來(lái)源:http://zhoumo123.cn/mysql/3423.html
總結(jié)
以上是生活随笔為你收集整理的mysql返回#1114 – The table ‘xxxx’is full解决方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 房子可以二次抵押贷款吗
- 下一篇: 用lua扩展你的Nginx(写的非常好)