Mecanismos de armazenamento
InnoDB
Supports transactions, row-level locking, foreign keys and encryption for tables
[ Variáveis | Pool de buffer | Estado do InnoDB ]
===================================== 2026-01-18 08:43:26 0x1c58 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 13 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 6249 srv_active, 0 srv_shutdown, 830235 srv_idle srv_master_thread log flush and writes: 836484 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 101183 OS WAIT ARRAY INFO: signal count 11547 RW-shared spins 7721, rounds 220246, OS waits 6988 RW-excl spins 1237, rounds 9440, OS waits 143 RW-sx spins 62, rounds 890, OS waits 12 Spin rounds per wait: 28.53 RW-shared, 7.63 RW-excl, 14.35 RW-sx ------------------------ LATEST FOREIGN KEY ERROR ------------------------ 2026-01-13 12:20:43 0x478 Transaction: TRANSACTION 764254, ACTIVE 0 sec updating or deleting mysql tables in use 1, locked 1 8 lock struct(s), heap size 1128, 4 row lock(s), undo log entries 1 MySQL thread id 1681, OS thread handle 1144, query id 36230 localhost 127.0.0.1 root Updating UPDATE `vrp`.`vrp_users` SET `id`=1 WHERE `id`=3 Foreign key constraint fails for table `vrp`.`vrp_user_ids`: , CONSTRAINT `fk_user_ids_users` FOREIGN KEY (`user_id`) REFERENCES `vrp_users` (`id`) ON DELETE CASCADE Trying to update in parent table, in index PRIMARY tuple: DATA TUPLE: 7 fields; 0: len 4; hex 80000003; asc ;; 1: len 6; hex 0000000ba95e; asc ^;; 2: len 7; hex 43000001ab165c; asc C \;; 3: len 0; hex ; asc ;; 4: len 0; hex ; asc ;; 5: len 1; hex 81; asc ;; 6: len 1; hex 80; asc ;; But in child table `vrp`.`vrp_user_ids`, in index fk_user_ids_users, there is a record: PHYSICAL RECORD: n_fields 2; compact format; info bits 0 0: len 4; hex 80000003; asc ;; 1: len 30; hex 6c6963656e7365323a623038633637346665323436333337623361393263; asc license2:b08c674fe246337b3a92c; (total 49 bytes); ------------ TRANSACTIONS ------------ Trx id counter 781603 Purge done for trx's n:o < 781603 undo n:o < 0 state: running History list length 3 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 283436979749152, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 283436979744984, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 283436979740816, 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 15775 OS file reads, 59291 OS file writes, 32094 OS fsyncs 5.85 reads/s, 16384 avg bytes/read, 8.54 writes/s, 4.38 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) 13.38 hash searches/s, 37.07 non-hash searches/s --- LOG --- Log sequence number 72714910 Log flushed up to 72714890 Pages flushed up to 72698589 Last checkpoint at 72698536 0 pending log flushes, 0 pending chkp writes 21245 log i/o's done, 3.31 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 33554432 Dictionary memory allocated 565904 Buffer pool size 1003 Free buffers 730 Database pages 265 Old database pages 0 Modified db pages 45 Percent of dirty pages(LRU & free pages): 4.518 Max dirty pages percent: 75.000 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages made young 144, not young 1860 0.00 youngs/s, 0.00 non-youngs/s Pages read 15589, created 1061, written 34229 5.85 reads/s, 0.00 creates/s, 4.77 writes/s Buffer pool hit rate 969 / 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: 265, unzip_LRU len: 0 I/O sum[429]: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=3104, Main thread ID=4340, state: sleeping Number of rows inserted 830, updated 5215, deleted 93, read 74589 0.00 inserts/s, 2.46 updates/s, 0.00 deletes/s, 14.00 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 12442 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================