将文件拖动至此

SQL 上传 ( 0 ) x -

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





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

存储引擎

InnoDB 文档

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

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


=====================================
2025-06-28 21:39:49 0x3ec INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 49 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 138907 srv_active, 0 srv_shutdown, 2962695 srv_idle
srv_master_thread log flush and writes: 3101602
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 12202951
OS WAIT ARRAY INFO: signal count 8810326
RW-shared spins 8832066, rounds 234333719, OS waits 7116694
RW-excl spins 5685330, rounds 11172918, OS waits 142252
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-28 19:58:48 0x1b00 Transaction:
TRANSACTION 30415672, ACTIVE 0 sec inserting
mysql tables in use 1, locked 1
5 lock struct(s), heap size 1128, 2 row lock(s), undo log entries 1
MySQL thread id 1910815, OS thread handle 6912, query id 31587483 CLOUD-PJCQRPUIU 45.58.43.18 FreeLuma Update
INSERT INTO videos (
        category_id, channel_id, title, description, tags, status
    ) VALUES (?, ?, ?, ?, ?, 'draft')
Foreign key constraint fails for table `freelumatv`.`videos`:
,
  CONSTRAINT `videos_ibfk_2` FOREIGN KEY (`channel_id`) REFERENCES `channels` (`id`) in parent table, in index channel_id tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000000; asc     ;;
 1: len 4; hex 80000072; asc    r;;

But in parent table `freelumatv`.`channels`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 9; compact format; info bits 0
 0: len 4; hex 80000001; asc     ;;
 1: len 6; hex 000000000000; asc       ;;
 2: len 7; hex 80000000000000; asc        ;;
 3: len 13; hex 546865204372696d6520496e6b; asc The Crime Ink;;
 4: len 30; hex 796132392e613041533348364e796c74384c4b7a544236614e575a545934; asc ya29.a0AS3H6Nylt8LKzTB6aNWZTY4; (total 224 bytes);
 5: len 0; hex ; asc ;;
 6: len 5; hex 99b6f0fb16; asc      ;;
 7: len 24; hex 55434e794c3046415258687956776d743456547049476741; asc UCNyL0FARXhyVwmt4VTpIGgA;;
 8: len 4; hex 80000001; asc     ;;

------------
TRANSACTIONS
------------
Trx id counter 30416325
Purge done for trx's n:o < 30416325 undo n:o < 0 state: running but idle
History list length 1
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
440460615 OS file reads, 9358442 OS file writes, 4996327 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 353, seg size 355, 78087 merges
merged operations:
 insert 739701, 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 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)
Hash table size 4441, node heap has 1 buffer(s)
0.10 hash searches/s, 0.06 non-hash searches/s
---
LOG
---
Log sequence number 3428442473
Log flushed up to   3428442473
Pages flushed up to 3428442473
Last checkpoint at  3428442464
0 pending log flushes, 0 pending chkp writes
4227851 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 307992
Buffer pool size   1003
Free buffers       739
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 676107546, not young 4004685395
0.00 youngs/s, 0.00 non-youngs/s
Pages read 440460544, created 112013, written 4874947
0.00 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 1000 / 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[0]: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 3419577, updated 304299, deleted 1912179, read 103460337732
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.10 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
============================