1114 (HY000):表已满

2023-05-01数据库问题
3

本文介绍了1114 (HY000):表已满的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在尝试使用简单的查询向 InnoDB 表添加一行:

I'm trying to add a row to an InnoDB table with a simply query:

INSERT INTO zip_codes (zip_code, city) VALUES ('90210', 'Beverly Hills');

但是当我尝试这个查询时,我得到以下信息:

But when I attempt this query, I get the following:

ERROR 1114 (HY000):表 zip_codes 已满

ERROR 1114 (HY000): The table zip_codes is full

做一个

SELECT COUNT(*) FROM zip_codes

给了我 188,959 行,考虑到我在同一个数据库中有另一个包含 810,635 行的表,这似乎并不算多.

gives me 188,959 rows, which doesn't seem like too many considering I have another table with 810,635 rows in that same database.

我对 InnoDB 引擎 缺乏经验,并且从未在 MyISAM 上遇到过这个问题.这里有哪些潜在问题?

I am fairly inexperienced with the InnoDB engine and never experienced this issue with MyISAM. What are some of the potential problems here ?

这仅在向 zip_codes 表中添加一行时发生.

This only occurs when adding a row to the zip_codes table.

推荐答案

首先检查,如果您没有用完磁盘空间,然后再解决与配置相关的解决方案.

First check, if you did not run out of disk-space, before resolving to the configuration-related resolution.

您的 my.cnf 中的 innodb_data_file_path 的最大大小似乎过低,在此示例中

You seem to have a too low maximum size for your innodb_data_file_path in your my.cnf, In this example

innodb_data_file_path = ibdata1:10M:autoextend:max:512M

您不能在所有 innodb 表中托管超过 512MB 的数据.

you cannot host more than 512MB of data in all innodb tables combined.

也许您应该使用 innodb_file_per_table 切换到 innodb-per-table 方案.

Maybe you should switch to an innodb-per-table scheme using innodb_file_per_table.

这篇关于1114 (HY000):表已满的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

Mysql目录里的ibtmp1文件过大造成磁盘占满的解决办法
ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致...
2025-01-02 数据库问题
151

SQL 子句“GROUP BY 1"是什么意思?意思是?
What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)...
2024-04-16 数据库问题
62

MySQL groupwise MAX() 返回意外结果
MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)...
2024-04-16 数据库问题
13

MySQL SELECT 按组最频繁
MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)...
2024-04-16 数据库问题
16

为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同
Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)...
2024-04-16 数据库问题
13

MySQL GROUP BY DateTime +/- 3 秒
MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)...
2024-04-16 数据库问题
14