Wishlist 0 ¥0.00

解决mysql出现"the table is full"的问题

有时候项目好好的就报:数据库操作错误,请联系管理员,发现后台报这个


来说说解决mysql出现"the table is full"的问题:

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


ERROR 1114 (HY000) at line 1720: The table 'XXXX' is full

于是就修改Mysql的配置文件my.ini,在[mysqld]下添加/修改两行:
tmp_table_size = 256M
max_heap_table_size = 256M

系统默认是16M,修改完后重启mysql

 

二.硬盘空间满了,清理硬盘即可.

不要被mysql的安装目录所欺骗, 最好亲自去看看数据存放目录是哪

在my.ini  搜索 datadir

看其指向的目录 就是数据存放目录

 

我当时的解决方案是,将数据库的磁盘清理了就好了;

我觉得还可以创建临时表,设置表的size
————————————————
版权声明:本文为CSDN博主「小美猪」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/xmz1193184480/article/details/79261623

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.