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 10:15:23 0x15e4 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 26 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 6555 srv_active, 0 srv_shutdown, 835366 srv_idle srv_master_thread log flush and writes: 841921 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 115948 OS WAIT ARRAY INFO: signal count 12904 RW-shared spins 7926, rounds 226312, OS waits 7186 RW-excl spins 1241, rounds 9531, OS waits 146 RW-sx spins 62, rounds 890, OS waits 12 Spin rounds per wait: 28.55 RW-shared, 7.68 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 784786 Purge done for trx's n:o < 784786 undo n:o < 0 state: running but idle History list length 1 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 18955 OS file reads, 67012 OS file writes, 35469 OS fsyncs 0.46 reads/s, 16384 avg bytes/read, 2.00 writes/s, 0.88 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) 1.31 hash searches/s, 2.00 non-hash searches/s --- LOG --- Log sequence number 74636270 Log flushed up to 74636270 Pages flushed up to 74636270 Last checkpoint at 74636261 0 pending log flushes, 0 pending chkp writes 23525 log i/o's done, 0.54 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 33554432 Dictionary memory allocated 565904 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 144, not young 1860 0.00 youngs/s, 0.00 non-youngs/s Pages read 18769, created 1149, written 39219 0.46 reads/s, 0.00 creates/s, 1.35 writes/s Buffer pool hit rate 963 / 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[71]:cur[0], 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 6806, deleted 93, read 83390 0.00 inserts/s, 0.19 updates/s, 0.00 deletes/s, 1.04 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 14267 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================