惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
L
LangChain Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
D
DataBreaches.Net
P
Proofpoint News Feed
小众软件
小众软件
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
雷峰网
雷峰网
G
Google Developers Blog

MySQL Forums

MySQL :: Workbench update to 26.7.0 MySQL :: Upgrade Problems Starting a Discussion About Database Migration Best practices for indexing large tables with frequent updates? Discrepancy in Compatibility statement with MySQL and Connector/J 26.7 Announcing August 2026 Releases featuring MySQL Server, MySQL NDB Cluster, Shell and Connector/ODBC How to Troubleshoot Slow MySQL Queries Using EXPLAIN and Indexes The future of the timestamp data type Linking 2 cells in a table MySQL :: MySQL syntax error replication from 8.0 to 8.4 error How should I design a MySQL schema for storing construction material calculations? (no replies) Can AI analyze market trends faster than traditional trading (no replies) This CMD window bothers me. Announcing July 2026 Releases featuring MySQL Server 26.7.0, 9.7.2 and 8.4.11 Can I purge binlog files after migration ? Can't update expired password in Mysql Workbench Assistance with MySql application and Sql server MySQL :: MySQL Community Governance Model Announcing June 2026 Releases featuring MySQL Server 9.7.1 and 8.4.10 GoHighLevel Webhook Data in MySQL I'm troubleshooting MySQL query performance (no replies) Problem with creating a connection to a remote database on local network Best MySQL schema for storing image processing jobs? APT Repository not working on Ubuntu 26.04 How do you create a remote connection to a database (no replies) MySQL :: storing and reading blob ODBC Connector almost always alters it's name and path MySQL :: Connector/Windows MySQL :: Clientless connection with PS
What could cause .frm and .ibd mismatches across multiple...
maria b · 2026-06-04 · via MySQL Forums

Hello,

We recently encountered a very strange issue on a production MySQL/MariaDB server and I'm trying to understand what could have caused it.

We have a Laravel application. A few days ago we noticed that a table seemed to be missing. After selecting the database and running:

SHOW TABLES;

the table did not appear in the list.

However, we were still able to query it:

SELECT * FROM table_name;

and the query returned data successfully.

At that point we executed:

FLUSH TABLES;

After that, the SELECT statement stopped working.

We then inspected the database directory under:

/var/lib/mysql/<database_name>/

and discovered that this was not limited to a single table. A significant number of tables were in an inconsistent state:

* Some tables had both .frm and .ibd files.
* Some tables had only a .frm file.
* Some tables had only a .ibd file.

We attempted to restore the database from the previous day's backup, but to our surprise the same inconsistencies were already present there. My understanding is that mysqldump only exports tables that MySQL can see through its metadata, so tables that only had orphaned .ibd files would not have been included in the dump ¿?

Eventually we had to restore from a backup that was about 5 days old, where all expected tables and files were present and consistent.

My questions are:

1. What kinds of events can lead to this type of inconsistency between .frm and .ibd files? - (the disk storage wasn't full)

2. Do people typically implement checks in production to detect mismatches between .frm and .ibd files before backups are taken? Cuz we always assumed that a successful mysqldump was enough

Additional environment information:

Operating System: Debian 12

Database Server: MariaDB 10.11.14

Version output:
mariadb Ver 15.1 Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64)

innodb_file_per_table is enabled:
SHOW VARIABLES LIKE 'innodb_file_per_table';

Result:
+-----------------------+-------+
| Variable_name | Value |
+-----------------------+-------+
| innodb_file_per_table | ON |
+-----------------------+-------+

Version details:
SHOW VARIABLES LIKE 'version%';

Result:

version = 10.11.14-MariaDB-0+deb12u2-log
version_comment = Debian 12
version_compile_machine = x86_64
version_compile_os = debian-linux-gnu

Any ideas or similar experiences would be greatly appreciated!!