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:14 0x460 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 49 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 8143 srv_active, 0 srv_shutdown, 2019036 srv_idle
srv_master_thread log flush and writes: 2027179
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 826437
--Thread 2808 has waited at srv0srv.cc line 900 for 0.00 seconds the semaphore:
Mutex at 00007FF63BCC5450, Mutex SRV_SYS created srv0srv.cc:1005, lock var 2

--Thread 112 has waited at srv0srv.cc line 900 for 0.00 seconds the semaphore:
Mutex at 00007FF63BCC5450, Mutex SRV_SYS created srv0srv.cc:1005, lock var 2

--Thread 3236 has waited at srv0srv.cc line 900 for 0.00 seconds the semaphore:
Mutex at 00007FF63BCC5450, Mutex SRV_SYS created srv0srv.cc:1005, lock var 2

OS WAIT ARRAY INFO: signal count 136631
RW-shared spins 10055, rounds 291585, OS waits 8192
RW-excl spins 4906, rounds 22795, OS waits 365
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 3010844
Purge done for trx's n:o < 3010844 undo n:o < 0 state: running
History list length 8
LIST OF TRANSACTIONS FOR EACH SESSION:
---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 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
39379 OS file reads, 279773 OS file writes, 107304 OS fsyncs
1.29 reads/s, 16384 avg bytes/read, 4.51 writes/s, 1.69 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)
7.61 hash searches/s, 10.90 non-hash searches/s
---
LOG
---
Log sequence number 173663832
Log flushed up to   173663832
Pages flushed up to 173663832
Last checkpoint at  173644815
0 pending log flushes, 0 pending chkp writes
72899 log i/o's done, 1.06 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 280448
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 119, not young 14158
0.00 youngs/s, 0.00 non-youngs/s
Pages read 39284, created 3455, written 193293
1.29 reads/s, 0.02 creates/s, 3.22 writes/s
Buffer pool hit rate 978 / 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[212]:cur[9], 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 47005, deleted 868, read 3821018
0.00 inserts/s, 0.88 updates/s, 0.00 deletes/s, 18.16 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
============================