Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :

Storage engines

InnoDB Documentation

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

[ Variables | Buffer Pool | InnoDB Status ]


=====================================
2026-01-21 18:42:35 0x7f803e6886c0 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 63 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 26935 srv_active, 0 srv_shutdown, 8435980 srv_idle
srv_master_thread log flush and writes: 8462819
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 191113
OS WAIT ARRAY INFO: signal count 104978
RW-shared spins 19265, rounds 454921, OS waits 14611
RW-excl spins 15971, rounds 112695, OS waits 916
RW-sx spins 195, rounds 4347, OS waits 94
Spin rounds per wait: 23.61 RW-shared, 7.06 RW-excl, 22.29 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-10-16 07:42:35 0x7f803e7ff6c0 Transaction:
TRANSACTION 827757, ACTIVE 0 sec inserting
mysql tables in use 1, locked 1
3 lock struct(s), heap size 1128, 1 row lock(s), undo log entries 1
MySQL thread id 54, OS thread handle 140188781115072, query id 1109 localhost ::1 root Update
-- Question 1: Пол
INSERT INTO questions (survey_id, group_id, question_text, question_type_id, position)
VALUES (@survey_id, 1, 'У коју средњу школу идете (ПИТАЊЕ САМО ЗА УЧЕНИКЕ):', 1, 1)
Foreign key constraint fails for table `surveys`.`questions`:
,
  CONSTRAINT `questions_ibfk_1` FOREIGN KEY (`survey_id`) REFERENCES `survey` (`id`) in parent table, in index survey_id tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000006; asc     ;;
 1: len 4; hex 80000007; asc     ;;

But in parent table `surveys`.`survey`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 13; compact format; info bits 0
 0: len 4; hex 80000002; asc     ;;
 1: len 6; hex 000000000000; asc       ;;
 2: len 7; hex 80000000000000; asc        ;;
 3: len 30; hex 376532623463356638643961306231326333643465366637383930616263; asc 7e2b4c5f8d9a0b12c3d4e6f7890abc; (total 32 bytes);
 4: len 30; hex d094d0b8d0b3d0b8d182d0b0d0bbd0bdd0b020d0b7d0b4d180d0b0d0b2d1; asc                               ; (total 60 bytes);
 5: len 30; hex d0a3d0bfd0b8d182d0bdd0b8d0ba20d0be20d0b4d0b8d0b3d0b8d182d0b0; asc                               ; (total 540 bytes);
 6: len 30; hex d096d0b5d0bbd0b8d0bcd0be20d0b4d0b020d0b1d0bed199d0b520d180d0; asc                               ; (total 709 bytes);
 7: len 30; hex d092d0b0d188d0b520d0bcd0b8d188d199d0b5d19ad0b520d0bdd0b0d0bc; asc                               ; (total 445 bytes);
 8: len 4; hex 8000000a; asc     ;;
 9: len 4; hex 68f085cb; asc h   ;;
 10: len 4; hex 692b7af0; asc i+z ;;
 11: len 6; hex 616374697665; asc active;;
 12: len 4; hex 80000002; asc     ;;

------------
TRANSACTIONS
------------
Trx id counter 1026039
Purge done for trx's n:o < 1026039 undo n:o < 0 state: running
History list length 2
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421663507534328, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 421663507530112, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 421663507525896, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 421663507521680, 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
184745 OS file reads, 368000 OS file writes, 191617 OS fsyncs
0.46 reads/s, 16384 avg bytes/read, 1.65 writes/s, 0.79 fsyncs/s
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
-------------------------------------
Ibuf: size 1, free list len 3, seg size 5, 5 merges
merged operations:
 insert 0, delete mark 12, delete 7
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)
0.98 hash searches/s, 3.86 non-hash searches/s
---
LOG
---
Log sequence number 283244309
Log flushed up to   283244309
Pages flushed up to 283244309
Last checkpoint at  283241894
0 pending log flushes, 0 pending chkp writes
102717 log i/o's done, 0.46 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 261080
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 74, not young 51118
0.00 youngs/s, 0.00 non-youngs/s
Pages read 184636, created 2806, written 235140
0.46 reads/s, 0.02 creates/s, 1.06 writes/s
Buffer pool hit rate 966 / 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[87]: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=37828, Main thread ID=140188135192256, state: sleeping
Number of rows inserted 38359, updated 37469, deleted 979, read 136777964
0.00 inserts/s, 0.19 updates/s, 0.00 deletes/s, 1.02 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 106560
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================