Moteurs de stockage
InnoDB
Supports transactions, row-level locking, foreign keys and encryption for tables
[ Variables | Mémoire tampon | État InnoDB ]
===================================== 2026-11-23 17:56:43 0x4530 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 22 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 991 srv_active, 0 srv_shutdown, 536773 srv_idle srv_master_thread log flush and writes: 537764 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 41146 OS WAIT ARRAY INFO: signal count 5808 RW-shared spins 1913, rounds 49188, OS waits 1582 RW-excl spins 443, rounds 11784, OS waits 345 RW-sx spins 0, rounds 0, OS waits 0 Spin rounds per wait: 25.71 RW-shared, 26.60 RW-excl, 0.00 RW-sx ------------------------ LATEST FOREIGN KEY ERROR ------------------------ 2026-10-30 10:38:01 0x15bc Transaction: TRANSACTION 65032, ACTIVE 0 sec updating or deleting mysql tables in use 3, locked 3 8 lock struct(s), heap size 1128, 4 row lock(s), undo log entries 1 MySQL thread id 1425, OS thread handle 5564, query id 3706 localhost ::1 root Updating DELETE FROM consultations WHERE id = '4153' Foreign key constraint fails for table `edenbzso_gestion_patients_maroc`.`paiements`: , CONSTRAINT `paiements_ibfk_1` FOREIGN KEY (`consultation_id`) REFERENCES `consultations` (`id`) Trying to delete or update in parent table, in index PRIMARY tuple: DATA TUPLE: 21 fields; 0: len 4; hex 80001039; asc 9;; 1: len 6; hex 00000000fe08; asc ;; 2: len 7; hex 6e000001e03017; asc n 0 ;; 3: len 4; hex 80000b4c; asc L;; 4: len 4; hex 80000001; asc ;; 5: SQL NULL; 6: len 5; hex 99bb3ca040; asc < @;; 7: len 1; hex 01; asc ;; 8: len 37; hex 5072656d69c3a8726520636f6e73756c746174696f6e3a20636f6e73756c746174696f6e20; asc Premi re consultation: consultation ;; 9: SQL NULL; 10: len 0; hex ; asc ;; 11: len 0; hex ; asc ;; 12: SQL NULL; 13: len 37; hex 5072656d69c3a8726520636f6e73756c746174696f6e3a20636f6e73756c746174696f6e20; asc Premi re consultation: consultation ;; 14: SQL NULL; 15: SQL NULL; 16: SQL NULL; 17: SQL NULL; 18: SQL NULL; 19: len 4; hex 6ae45d3b; asc j ];;; 20: SQL NULL; But in child table `edenbzso_gestion_patients_maroc`.`paiements`, in index consultation_id, there is a record: PHYSICAL RECORD: n_fields 2; compact format; info bits 0 0: len 4; hex 80001039; asc 9;; 1: len 4; hex 80000fd5; asc ;; ------------ TRANSACTIONS ------------ Trx id counter 71088 Purge done for trx's n:o < 71088 undo n:o < 0 state: running but idle History list length 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 282786772558112, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 282786772553944, not started 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION 282786772549776, 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 18972 OS file reads, 28224 OS file writes, 12993 OS fsyncs 0.68 reads/s, 16384 avg bytes/read, 0.55 writes/s, 0.14 fsyncs/s ------------------------------------- INSERT BUFFER AND ADAPTIVE HASH INDEX ------------------------------------- Ibuf: size 1, free list len 17, seg size 19, 958 merges merged operations: insert 943, delete mark 16, delete 1 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 5 buffer(s) Hash table size 4441, node heap has 0 buffer(s) Hash table size 4441, node heap has 1 buffer(s) Hash table size 4441, node heap has 1 buffer(s) 1.95 hash searches/s, 4.64 non-hash searches/s --- LOG --- Log sequence number 114284528 Log flushed up to 114284528 Pages flushed up to 114284528 Last checkpoint at 114284299 0 pending log flushes, 0 pending chkp writes 7607 log i/o's done, 0.05 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 33554432 Dictionary memory allocated 140224 Buffer pool size 1003 Free buffers 661 Database pages 331 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 0, not young 0 0.00 youngs/s, 0.00 non-youngs/s Pages read 18913, created 270, written 18921 0.68 reads/s, 0.00 creates/s, 0.45 writes/s Buffer pool hit rate 956 / 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: 331, unzip_LRU len: 0 I/O sum[51]: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=3600, Main thread ID=6096, state: sleeping Number of rows inserted 1128, updated 1939, deleted 27, read 57929668 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 2.23 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 2593 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================