Thả tập tin vào đây

SQL upload ( 0 ) x -

Cài đặt liên quan đến trang Bấm vào thanh để cuộn lên đỉnh trang
Nhấn Ctrl+Enter để thực thi truy vấn Nhấn Enter để thực thi truy vấn
tăng dần
giảm dần
Thứ tự:
Gỡ rối SQL
Số lượng
Thứ tự thực thi
Thời gian cần
Xếp theo:
Nhóm truy vấn
Bỏ nhóm các truy vấn
Co lại Mở rộng Hiện theo dõi Ẩn theo dõi Số lượng Thời gian cần
Đánh dấu
Làm tươi lại
Thêm
Không có đánh dấu nào
Thêm đánh dấu
Tùy chọn
Đặt lại thành mặc định





Co lại Mở rộng Truy vấn lại Sửa Giải thích Hồ sơ Đánh dấu Truy vấn bị lỗi Cơ sở dữ liệu : Thời gian truy vấn :

Storage engines

InnoDB Tài liệu

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

[ Biến | Bể bộ đệm | Trạng thái InnoDB ]


=====================================
2026-01-27 13:24:51 0x169c INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 37 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 8148 srv_active, 0 srv_shutdown, 2019067 srv_idle
srv_master_thread log flush and writes: 2027215
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 826761
OS WAIT ARRAY INFO: signal count 136671
RW-shared spins 10059, rounds 291705, OS waits 8195
RW-excl spins 4907, rounds 22825, OS waits 366
RW-sx spins 38, rounds 589, OS waits 8
Spin rounds per wait: 29.00 RW-shared, 4.65 RW-excl, 15.50 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2026-01-26 20:06:37 0xefc Transaction:
TRANSACTION 1448285, 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 1499, OS thread handle 3836, query id 316648 localhost ::1 root Updating
DELETE FROM `backup`.`account` WHERE `id` = 11
Foreign key constraint fails for table `backup`.`player`:
,
  CONSTRAINT `player_ibfk_1` FOREIGN KEY (`account_id`) REFERENCES `account` (`id`)
Trying to delete or update in parent table, in index PRIMARY tuple:
DATA TUPLE: 61 fields;
 0: len 4; hex 8000000b; asc     ;;
 1: len 6; hex 00000016195d; asc      ];;
 2: len 7; hex 6a000001a92fac; asc j    / ;;
 3: len 4; hex 74657374; asc test;;
 4: len 8; hex 61646d696e393873; asc admin98s;;
 5: len 0; hex ; asc ;;
 6: len 4; hex 697719a8; asc iw  ;;
 7: len 4; hex 6977517f; asc iwQ ;;
 8: len 2; hex 8000; asc   ;;
 9: len 4; hex 80000000; asc     ;;
 10: len 4; hex 80000000; asc     ;;
 11: len 4; hex 7fffffff; asc     ;;
 12: len 1; hex 81; asc  ;;
 13: len 4; hex 6977514a; asc iwQJ;;
 14: len 4; hex 69775170; asc iwQp;;
 15: len 12; hex 32372e37312e3132312e3531; asc 27.71.121.51;;
 16: len 4; hex 80000000; asc     ;;
 17: len 4; hex 80000000; asc     ;;
 18: len 4; hex 7fffffff; asc     ;;
 19: len 8; hex 000000000000f03f; asc        ?;;
 20: len 1; hex 80; asc  ;;
 21: len 1; hex 30; asc 0;;
 22: SQL NULL;
 23: len 4; hex 80000000; asc     ;;
 24: len 4; hex 80000000; asc     ;;
 25: len 4; hex 80000000; asc     ;;
 26: len 4; hex 80000000; asc     ;;
 27: SQL NULL;
 28: len 4; hex 80000000; asc     ;;
 29: len 4; hex 80000000; asc     ;;
 30: len 4; hex 80000000; asc     ;;
 31: len 4; hex 80000000; asc     ;;
 32: len 4; hex 80000000; asc     ;;
 33: len 4; hex 80000000; asc     ;;
 34: len 4; hex 80000000; asc     ;;
 35: len 4; hex 80000000; asc     ;;
 36: len 4; hex 80000000; asc     ;;
 37: len 4; hex 80000000; asc     ;;
 38: len 4; hex 80000000; asc     ;;
 39: len 4; hex 80000000; asc     ;;
 40: len 4; hex 80000000; asc     ;;
 41: len 4; hex 80000000; asc     ;;
 42: len 4; hex 80000000; asc     ;;
 43: len 4; hex 80000000; asc     ;;
 44: len 4; hex 80000000; asc     ;;
 45: len 4; hex 80000000; asc     ;;
 46: len 4; hex 80000000; asc     ;;
 47: len 4; hex 80000000; asc     ;;
 48: len 4; hex 80000000; asc     ;;
 49: len 4; hex 80000000; asc     ;;
 50: SQL NULL;
 51: SQL NULL;
 52: len 4; hex 80000000; asc     ;;
 53: len 8; hex 8000000000000000; asc         ;;
 54: len 4; hex 80000000; asc     ;;
 55: len 4; hex 80000004; asc     ;;
 56: SQL NULL;
 57: len 4; hex 80000000; asc     ;;
 58: SQL NULL;
 59: SQL NULL;
 60: len 4; hex 80000000; asc     ;;

But in child table `backup`.`player`, in index account_id, there is a record:
PHYSICAL RECORD: n_fields 2; compact format; info bits 0
 0: len 4; hex 8000000b; asc     ;;
 1: len 4; hex 8000000b; asc     ;;

------------
TRANSACTIONS
------------
Trx id counter 3010876
Purge done for trx's n:o < 3010872 undo n:o < 0 state: running
History list length 4
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 281877045642152, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045604640, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045637984, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045633816, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045629648, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045625480, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045621312, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045617144, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045612976, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045608808, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045596304, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281877045600472, 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
39408 OS file reads, 279882 OS file writes, 107349 OS fsyncs
0.78 reads/s, 16384 avg bytes/read, 2.95 writes/s, 1.22 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 0, seg size 2, 0 merges
merged operations:
 insert 0, delete mark 0, delete 0
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)
5.54 hash searches/s, 5.81 non-hash searches/s
---
LOG
---
Log sequence number 173683061
Log flushed up to   173683061
Pages flushed up to 173679669
Last checkpoint at  173678523
0 pending log flushes, 0 pending chkp writes
72927 log i/o's done, 0.76 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 280448
Buffer pool size   1003
Free buffers       736
Database pages     259
Old database pages 0
Modified db pages  7
Percent of dirty pages(LRU & free pages): 0.703
Max dirty pages percent: 75.000
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 119, not young 14158
0.00 youngs/s, 0.00 non-youngs/s
Pages read 39313, created 3456, written 193368
0.78 reads/s, 0.03 creates/s, 2.03 writes/s
Buffer pool hit rate 981 / 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: 259, unzip_LRU len: 0
I/O sum[207]:cur[3], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=3152, Main thread ID=4168, state: sleeping
Number of rows inserted 30724, updated 47021, deleted 868, read 3821590
0.00 inserts/s, 0.43 updates/s, 0.00 deletes/s, 15.46 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 2320
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================