Storage engines
InnoDB
Supports transactions, row-level locking, foreign keys and encryption for tables
[
Variables
|
Buffer Pool
|
InnoDB Status
]
=====================================
2025-03-15 04:24:21 0x1ad4 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 7 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 274027 srv_active, 0 srv_shutdown, 1895024 srv_idle
srv_master_thread log flush and writes: 2169051
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 594020
OS WAIT ARRAY INFO: signal count 445328
RW-shared spins 318297, rounds 9547843, OS waits 318188
RW-excl spins 642, rounds 14115, OS waits 419
RW-sx spins 11, rounds 330, OS waits 11
Spin rounds per wait: 30.00 RW-shared, 21.99 RW-excl, 30.00 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-02-18 21:03:18 0x1ab0 Transaction:
TRANSACTION 5737, 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 175, OS thread handle 6832, query id 15585 localhost ::1 root Update
INSERT INTO ns_mdt_training (user_fivem_id, completed_trainings) VALUES ('fivem:14716877', '[]')
Foreign key constraint fails for table `fivem`.`ns_mdt_training`:
,
CONSTRAINT `ns_mdt_training_ibfk_1` FOREIGN KEY (`user_fivem_id`) REFERENCES `ns_mdt_user` (`fivem_id`) ON DELETE CASCADE in parent table, in index user_fivem_id tuple:
DATA TUPLE: 2 fields;
0: len 14; hex 666976656d3a3134373136383737; asc fivem:14716877;;
1: len 6; hex 000000000418; asc ;;
But in parent table `fivem`.`ns_mdt_user`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 7; compact format; info bits 0
0: len 14; hex 666976656d3a3135303738373232; asc fivem:15078722;;
1: len 6; hex 000000000000; asc ;;
2: len 7; hex 80000000000000; asc ;;
3: len 19; hex 31323932363339393436343630363236393437; asc 1292639946460626947;;
4: len 23; hex 37412d33312049204a6f73657068204420492032313234; asc 7A-31 I Joseph D I 2124;;
5: len 4; hex 00000019; asc ;;
6: len 5; hex 58582d3030; asc XX-00;;
------------
TRANSACTIONS
------------
Trx id counter 555748
Purge done for trx's n:o < 555748 undo n:o < 0 state: running
History list length 3
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 284010788250248, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788246080, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788241912, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788237744, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788229408, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788233576, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788225240, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 284010788221072, 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
386584 OS file reads, 2952597 OS file writes, 2167250 OS fsyncs
3.57 reads/s, 16384 avg bytes/read, 6.00 writes/s, 2.57 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 0 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)
18.14 hash searches/s, 44.28 non-hash searches/s
---
LOG
---
Log sequence number 390558767
Log flushed up to 390558747
Pages flushed up to 390556571
Last checkpoint at 390546073
0 pending log flushes, 0 pending chkp writes
1225375 log i/o's done, 1.71 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 540864
Buffer pool size 1003
Free buffers 736
Database pages 260
Old database pages 0
Modified db pages 5
Percent of dirty pages(LRU & free pages): 0.502
Max dirty pages percent: 75.000
Pending reads 0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 46, not young 552
0.00 youngs/s, 0.00 non-youngs/s
Pages read 386370, created 16393, written 1392438
3.57 reads/s, 0.00 creates/s, 4.00 writes/s
Buffer pool hit rate 971 / 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: 260, unzip_LRU len: 0
I/O sum[24]:cur[29], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=3236, Main thread ID=4948, state: sleeping
Number of rows inserted 118, updated 275715, deleted 0, read 6090650
0.00 inserts/s, 1.57 updates/s, 0.00 deletes/s, 16.85 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 11635
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================