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 12:14:55 0x2728 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 9 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 7866 srv_active, 0 srv_shutdown, 2015250 srv_idle
srv_master_thread log flush and writes: 2023116
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 812468
OS WAIT ARRAY INFO: signal count 135276
RW-shared spins 9813, rounds 285094, OS waits 8090
RW-excl spins 4864, rounds 21568, OS waits 339
RW-sx spins 38, rounds 589, OS waits 8
Spin rounds per wait: 29.05 RW-shared, 4.43 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 3008437
Purge done for trx's n:o < 3008417 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 281877045608808, 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 281877045612976, 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 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
37235 OS file reads, 274086 OS file writes, 105083 OS fsyncs
0.22 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 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)
8.67 hash searches/s, 10.78 non-hash searches/s
---
LOG
---
Log sequence number 172440097
Log flushed up to   172440097
Pages flushed up to 172440097
Last checkpoint at  172440088
0 pending log flushes, 0 pending chkp writes
71481 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 280448
Buffer pool size   1003
Free buffers       735
Database pages     260
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 119, not young 14158
0.00 youngs/s, 0.00 non-youngs/s
Pages read 37140, created 3403, written 189372
0.22 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 995 / 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: 260, unzip_LRU len: 0
I/O sum[2]: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=3152, Main thread ID=4168, state: sleeping
Number of rows inserted 30724, updated 45942, deleted 868, read 3743869
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 19.33 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 1552
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================