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 14:48:02 0x14ac INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 46 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 8415 srv_active, 0 srv_shutdown, 2023684 srv_idle
srv_master_thread log flush and writes: 2032099
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 854390
OS WAIT ARRAY INFO: signal count 139722
RW-shared spins 10437, rounds 302923, OS waits 8503
RW-excl spins 4959, rounds 24533, OS waits 401
RW-sx spins 38, rounds 589, OS waits 8
Spin rounds per wait: 29.02 RW-shared, 4.95 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 3013622
Purge done for trx's n:o < 3013620 undo n:o < 0 state: running
History list length 2
LIST OF TRANSACTIONS FOR EACH SESSION:
---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 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
40672 OS file reads, 285820 OS file writes, 109956 OS fsyncs
0.04 reads/s, 16384 avg bytes/read, 0.24 writes/s, 0.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)
3.24 hash searches/s, 1.91 non-hash searches/s
---
LOG
---
Log sequence number 175267745
Log flushed up to   175267745
Pages flushed up to 175266419
Last checkpoint at  175266410
0 pending log flushes, 0 pending chkp writes
74602 log i/o's done, 0.15 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 280448
Buffer pool size   1003
Free buffers       738
Database pages     257
Old database pages 0
Modified db pages  3
Percent of dirty pages(LRU & free pages): 0.301
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 40577, created 3521, written 197290
0.04 reads/s, 0.00 creates/s, 0.07 writes/s
Buffer pool hit rate 998 / 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: 257, unzip_LRU len: 0
I/O sum[4]:cur[1], 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 47846, deleted 868, read 3903795
0.00 inserts/s, 0.04 updates/s, 0.00 deletes/s, 13.70 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 3329
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================