将文件拖动至此

SQL 上传 ( 0 ) x -

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





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

存储引擎

InnoDB 文档

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

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


=====================================
2026-09-24 07:52:40 0x7f11d0064640 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 35 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 46335 srv_active, 0 srv_shutdown, 401068 srv_idle
srv_master_thread log flush and writes: 447298
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 315425
OS WAIT ARRAY INFO: signal count 257938
RW-shared spins 72490, rounds 1552253, OS waits 36368
RW-excl spins 932, rounds 3090, OS waits 51
RW-sx spins 144, rounds 830, OS waits 9
Spin rounds per wait: 21.41 RW-shared, 3.32 RW-excl, 5.76 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2026-09-24 00:15:49 0x7f11d0064640 Transaction:
TRANSACTION 6269306, ACTIVE 1 sec inserting
mysql tables in use 1, locked 1
5 lock struct(s), heap size 1128, 2 row lock(s), undo log entries 41
MySQL thread id 320448, OS thread handle 139714481243712, query id 18009304 localhost 127.0.0.1 root Update
INSERT INTO academic_courses
                (course_code, name_ar, department_id, faculty_id, year_level,
                 credit_hours, is_shared, is_active, notes)
            VALUES ('ARTSPANARB002','اللغة العربية 2',17,1,'all',2,1,1,'أعمال سنة:20 | ميدتيرم:30 | شفهي:0 | فاينال:50')
            ON DUPLICATE KEY UPDATE
                name_ar=VALUES(name_ar),
                department_id=VALUES(department_id),
                year_level=VALUES(year_level),
                credit_hours=VALUES(credit_hours),
                is_shared=VALUES(is_shared),
  
Foreign key constraint fails for table `arts_erp_system`.`academic_courses`:
,
  CONSTRAINT `academic_courses_ibfk_1` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON DELETE SET NULL in parent table, in index department_id tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000011; asc     ;;
 1: len 4; hex 80000714; asc     ;;

But in parent table `arts_erp_system`.`departments`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 1; compact format; info bits 0
 0: len 8; hex 696e66696d756d00; asc infimum ;;

------------
TRANSACTIONS
------------
Trx id counter 6281331
Purge done for trx's n:o < 6280969 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421189659431176, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 421189659426960, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
--------
FILE I/O
--------
I/O thread 0 state: waiting for i/o request (insert buffer thread)
I/O thread 1 state: waiting for i/o request (log thread)
I/O thread 2 state: waiting for i/o request (read thread)
I/O thread 3 state: waiting for i/o request (read thread)
I/O thread 4 state: waiting for i/o request (read thread)
I/O thread 5 state: waiting for i/o request (read thread)
I/O thread 6 state: waiting for i/o request (write thread)
I/O thread 7 state: waiting for i/o request (write thread)
I/O thread 8 state: waiting for i/o request (write thread)
I/O thread 9 state: waiting for i/o request (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
712251 OS file reads, 532944 OS file writes, 360607 OS fsyncs
2.86 reads/s, 16384 avg bytes/read, 0.00 writes/s, 0.00 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 5, seg size 7, 59 merges
merged operations:
 insert 50, delete mark 632, delete 0
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 4441, node heap has 2 buffer(s)
Hash table size 4441, node heap has 1 buffer(s)
Hash table size 4441, node heap has 2 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)
35.31 hash searches/s, 41.11 non-hash searches/s
---
LOG
---
Log sequence number 1369084595
Log flushed up to   1369084595
Pages flushed up to 1369084595
Last checkpoint at  1369084586
0 pending log flushes, 0 pending chkp writes
213109 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 1254160
Buffer pool size   1003
Free buffers       737
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 5744, not young 2610566
0.00 youngs/s, 0.00 non-youngs/s
Pages read 711737, created 3304, written 267191
2.86 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 982 / 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[100]: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=1216, Main thread ID=139713490949696, state: sleeping
Number of rows inserted 6091, updated 60769, deleted 3290, read 44125070
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 54.71 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 1152002
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================