Storage engines
InnoDB
Supports transactions, row-level locking, foreign keys and encryption for tables
[ Variables | Buffer Pool | InnoDB Status ]
===================================== 2026-03-22 17:00:31 0x7f802f8b26c0 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 21 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 44355 srv_active, 0 srv_shutdown, 13594877 srv_idle srv_master_thread log flush and writes: 13639077 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 336447 OS WAIT ARRAY INFO: signal count 188038 RW-shared spins 35889, rounds 819875, OS waits 26308 RW-excl spins 30588, rounds 207775, OS waits 1695 RW-sx spins 351, rounds 6352, OS waits 130 Spin rounds per wait: 22.84 RW-shared, 6.79 RW-excl, 18.10 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 1125903 Purge done for trx's n:o < 1125902 undo n:o < 0 state: running but idle History list length 5 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 421663507542760, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 421663507538544, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 421663507534328, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 421663507559624, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 421663507555408, 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 421663507551192, 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 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 322802 OS file reads, 568354 OS file writes, 303903 OS fsyncs 1.24 reads/s, 16384 avg bytes/read, 2.43 writes/s, 1.10 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 2 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.48 hash searches/s, 14.62 non-hash searches/s --- LOG --- Log sequence number 315058668 Log flushed up to 315058648 Pages flushed up to 315041877 Last checkpoint at 315034792 0 pending log flushes, 0 pending chkp writes 160421 log i/o's done, 0.95 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 33554432 Dictionary memory allocated 261080 Buffer pool size 1003 Free buffers 727 Database pages 267 Old database pages 0 Modified db pages 33 Percent of dirty pages(LRU & free pages): 3.317 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 103, not young 81820 0.00 youngs/s, 0.00 non-youngs/s Pages read 322693, created 3997, written 360211 1.24 reads/s, 0.00 creates/s, 1.43 writes/s Buffer pool hit rate 974 / 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: 267, unzip_LRU len: 0 I/O sum[243]:cur[2], 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 68210, updated 57854, deleted 2044, read 318117922 0.00 inserts/s, 0.86 updates/s, 0.00 deletes/s, 3.38 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 166636 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================