Supports transactions, row-level locking, foreign keys and encryption for tables
===================================== 2025-04-11 22:39:13 0x7f247806c700 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 23 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 2673 srv_active, 0 srv_shutdown, 31909 srv_idle srv_master_thread log flush and writes: 34579 ---------- SEMAPHORES ---------- OS WAIT ARRAY INFO: reservation count 11654 OS WAIT ARRAY INFO: signal count 8143 RW-shared spins 0, rounds 6683, OS waits 3341 RW-excl spins 0, rounds 613, OS waits 21 RW-sx spins 0, rounds 0, OS waits 0 Spin rounds per wait: 6683.00 RW-shared, 613.00 RW-excl, 0.00 RW-sx ------------------------ LATEST FOREIGN KEY ERROR ------------------------ 2025-04-11 13:32:40 0x7f247809e700 Transaction: TRANSACTION 37788, ACTIVE 0 sec updating or deleting mysql tables in use 2, locked 2 4 lock struct(s), heap size 1136, 2 row lock(s), undo log entries 1 MySQL thread id 808, OS thread handle 139794609465088, query id 21460 192.168.30.20 root Updating DELETE FROM country WHERE country_id = 1 Foreign key constraint fails for table `sakila`.`city`: , CONSTRAINT `fk_city_country` FOREIGN KEY (`country_id`) REFERENCES `country` (`country_id`) ON UPDATE CASCADE Trying to delete in parent table, in index PRIMARY tuple: DATA TUPLE: 5 fields; 0: len 2; hex 0001; asc ;; 1: len 6; hex 00000000939c; asc ;; 2: len 7; hex 7e000002240236; asc ~ $ 6;; 3: len 11; hex 41666768616e697374616e; asc Afghanistan;; 4: len 4; hex 43f2a380; asc C ;; But in child table `sakila`.`city`, in index idx_fk_country_id, there is a record: PHYSICAL RECORD: n_fields 2; compact format; info bits 0 0: len 2; hex 0001; asc ;; 1: len 2; hex 00fb; asc ;; ------------ TRANSACTIONS ------------ Trx id counter 43716 Purge done for trx's n:o < 43716 undo n:o < 0 state: running but idle History list length 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION 421269369623352, not started 0 lock struct(s), heap size 1136, 0 row lock(s) ---TRANSACTION 421269369619096, not started 0 lock struct(s), heap size 1136, 0 row lock(s) ---TRANSACTION 421269369614840, not started 0 lock struct(s), heap size 1136, 0 row lock(s) ---TRANSACTION 421269369610584, not started 0 lock struct(s), heap size 1136, 0 row lock(s) ---TRANSACTION 421269369606328, not started 0 lock struct(s), heap size 1136, 0 row lock(s) -------- FILE I/O -------- I/O thread 0 state: waiting for completed aio requests (insert buffer thread) I/O thread 1 state: waiting for completed aio requests (log thread) I/O thread 2 state: waiting for completed aio requests (read thread) I/O thread 3 state: waiting for completed aio requests (read thread) I/O thread 4 state: waiting for completed aio requests (read thread) I/O thread 5 state: waiting for completed aio requests (read thread) I/O thread 6 state: waiting for completed aio requests (write thread) I/O thread 7 state: waiting for completed aio requests (write thread) I/O thread 8 state: waiting for completed aio requests (write thread) I/O thread 9 state: waiting for completed aio requests (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 962 OS file reads, 29874 OS file writes, 20181 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 0.00 writes/s, 0.00 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 69257, node heap has 2 buffer(s) Hash table size 69257, node heap has 11 buffer(s) Hash table size 69257, node heap has 2 buffer(s) Hash table size 69257, node heap has 25 buffer(s) Hash table size 69257, node heap has 1 buffer(s) Hash table size 69257, node heap has 3 buffer(s) Hash table size 69257, node heap has 26 buffer(s) Hash table size 69257, node heap has 0 buffer(s) 0.00 hash searches/s, 0.13 non-hash searches/s --- LOG --- Log sequence number 13379761 Log flushed up to 13379761 Pages flushed up to 13379761 Last checkpoint at 13379752 0 pending log flushes, 0 pending chkp writes 12412 log i/o's done, 0.00 log i/o's/second ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 285212672 Dictionary memory allocated 144288 Buffer pool size 16024 Free buffers 14993 Database pages 961 Old database pages 374 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 803, created 158, written 14864 0.00 reads/s, 0.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 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: 961, unzip_LRU len: 0 I/O sum[0]: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=900, Main thread ID=139793895728896, state: sleeping Number of rows inserted 14, updated 3059, deleted 0, read 5081563 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s Number of system rows inserted 0, updated 0, deleted 0, read 9689 0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s ---------------------------- END OF INNODB MONITOR OUTPUT ============================