将文件拖动至此

SQL 上传 ( 0 ) x -

页面相关设置 点击以滚动到页面顶部
按 Ctrl+Enter 键执行查询 按 Enter 执行查询
递增排序
递减排序
命令:
调试 SQL
数量
运行顺序
用时
排序条件:
联合查询
不使用联合查询
崩溃 扩展 显示跟踪 隐藏跟踪 数量 用时
书签
刷新
添加
没有书签
添加书签
选项
恢复默认





崩溃 扩展 重新查询 编辑 解析 性能分析 书签 查询失败 数据库 : 查询时间 :

存储引擎

InnoDB 文档

Supports transactions, row-level locking, foreign keys and encryption for tables

[ 变量 | 缓冲池 | InnoDB 状态 ]


=====================================
2025-06-28 16:04:24 0x211c INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 53 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 138306 srv_active, 0 srv_shutdown, 2943301 srv_idle
srv_master_thread log flush and writes: 3081607
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 12198019
OS WAIT ARRAY INFO: signal count 8807139
RW-shared spins 8829725, rounds 234268419, OS waits 7114673
RW-excl spins 5684603, rounds 11171989, OS waits 142243
RW-sx spins 119464, rounds 1309380, OS waits 25436
Spin rounds per wait: 26.53 RW-shared, 1.97 RW-excl, 10.96 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-06-27 21:28:43 0x248c Transaction:
TRANSACTION 30409574, ACTIVE 0 sec updating or deleting
mysql tables in use 1, locked 1
4 lock struct(s), heap size 1128, 2 row lock(s), undo log entries 1
MySQL thread id 1902262, OS thread handle 9356, query id 31132599 localhost 127.0.0.1 root Updating
DELETE FROM `channels` WHERE `channels`.`id` = 3
Foreign key constraint fails for table `freelumatv`.`videos`:
,
  CONSTRAINT `videos_ibfk_2` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`)
Trying to delete or update in parent table, in index PRIMARY tuple:
DATA TUPLE: 9 fields;
 0: len 4; hex 80000003; asc     ;;
 1: len 6; hex 000001d00366; asc      f;;
 2: len 7; hex 2e00000abc305d; asc .    0];;
 3: len 19; hex 536c656570792054696d652054726176656c73; asc Sleepy Time Travels;;
 4: SQL NULL;
 5: SQL NULL;
 6: len 5; hex 99b6f37bb2; asc    { ;;
 7: len 24; hex 5543337765506779325830534a4e765a534a4c3631384c77; asc UC3wePgy2X0SJNvZSJL618Lw;;
 8: len 4; hex 80000002; asc     ;;

But in child table `freelumatv`.`videos`, in index channel_id, there is a record:
PHYSICAL RECORD: n_fields 2; compact format; info bits 0
 0: len 4; hex 80000003; asc     ;;
 1: len 4; hex 8000006c; asc    l;;

------------
TRANSACTIONS
------------
Trx id counter 30415074
Purge done for trx's n:o < 30415074 undo n:o < 0 state: running but idle
History list length 4
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 283725376028888, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 283725376024720, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
--------
FILE I/O
--------
I/O thread 0 state: native aio handle (insert buffer thread)
I/O thread 1 state: native aio handle (log thread)
I/O thread 2 state: native aio handle (read thread)
I/O thread 3 state: native aio handle (read thread)
I/O thread 4 state: native aio handle (read thread)
I/O thread 5 state: native aio handle (read thread)
I/O thread 6 state: native aio handle (write thread)
I/O thread 7 state: native aio handle (write thread)
I/O thread 8 state: native aio handle (write thread)
I/O thread 9 state: native aio handle (write thread)
Pending normal aio reads: [0, 0, 0, 0] , aio writes: [0, 0, 0, 0] ,
 ibuf aio reads:, log i/o's:, sync i/o's:
Pending flushes (fsync) log: 0; buffer pool: 0
440422137 OS file reads, 9350878 OS file writes, 4990742 OS fsyncs
0.26 reads/s, 16384 avg bytes/read, 0.57 writes/s, 0.51 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 353, seg size 355, 78077 merges
merged operations:
 insert 739686, delete mark 1325442, delete 92367
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 0 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
0.42 hash searches/s, 1.42 non-hash searches/s
---
LOG
---
Log sequence number 3427313710
Log flushed up to   3427313710
Pages flushed up to 3427313710
Last checkpoint at  3427313701
0 pending log flushes, 0 pending chkp writes
4224217 log i/o's done, 0.34 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 307992
Buffer pool size   1003
Free buffers       740
Database pages     256
Old database pages 0
Modified db pages  0
Percent of dirty pages(LRU & free pages): 0.000
Max dirty pages percent: 75.000
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 676105821, not young 4004594247
0.00 youngs/s, 0.00 non-youngs/s
Pages read 440422066, created 111958, written 4871688
0.26 reads/s, 0.00 creates/s, 0.17 writes/s
Buffer pool hit rate 911 / 1000, young-making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 256, unzip_LRU len: 0
I/O sum[23]:cur[0], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=7404, Main thread ID=7916, state: sleeping
Number of rows inserted 3419554, updated 303702, deleted 1912179, read 103459191478
0.00 inserts/s, 0.06 updates/s, 0.00 deletes/s, 0.53 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 91174
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================