Přetáhněte sem soubory

Nahrání SQL ( 0 ) x -

Stiskněte Ctrl+Enter pro spuštění dotazu Stiskněte Enter pro spuštění dotazu
vzestupně
sestupně
Pořadí:
Ladit SQL
Počet
Pořadí provedení
Čas běhu
Seřadit dle:
Seskupit dotazy
Zrušit seskupení dotazů
Sbalit Rozbalit Zobrazit trasovací informace Skrýt trasovací informace Počet: Doba běhu:
Záložky
Obnovit
Přidat
Žádné záložky
Přidat záložku
Nastavení
Restore default values
Sbalit Rozbalit Znovu Upravit Vysvětlit Profilování Záložka Dotaz selhal Databáze: Doba běhu:

Úložiště

InnoDB Dokumentace

Supports transactions, row-level locking, foreign keys and encryption for tables

[ Proměnné | Vyrovnávací paměť | Stav InnoDB ]


=====================================
2025-12-01 12:23:11 0x7f39bc54a700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 47 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 27154 srv_active, 0 srv_shutdown, 17023 srv_idle
srv_master_thread log flush and writes: 44172
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 93917
OS WAIT ARRAY INFO: signal count 75365
RW-shared spins 0, rounds 25742, OS waits 12708
RW-excl spins 0, rounds 21529, OS waits 711
RW-sx spins 8, rounds 192, OS waits 6
Spin rounds per wait: 25742.00 RW-shared, 21529.00 RW-excl, 24.00 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-12-01 04:24:20 0x7f39bc4e6700 Transaction:
TRANSACTION 53821, 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 32826, OS thread handle 139885949118208, query id 1003802 192.168.30.20 root Updating
DELETE FROM `groups` WHERE `code`=1
Foreign key constraint fails for table `lab1_db`.`students`:
,
  CONSTRAINT `stud_grp_fk` FOREIGN KEY (`gr_code`) REFERENCES `groups` (`code`)
Trying to delete or update in parent table, in index PRIMARY tuple:
DATA TUPLE: 4 fields;
 0: len 4; hex 80000001; asc     ;;
 1: len 6; hex 00000000d23d; asc      =;;
 2: len 7; hex 6e000001c230a7; asc n    0 ;;
 3: len 3; hex 313031; asc 101;;

But in child table `lab1_db`.`students`, in index stud_grp_fk, there is a record:
PHYSICAL RECORD: n_fields 2; compact format; info bits 0
 0: len 4; hex 80000001; asc     ;;
 1: len 4; hex 80000001; asc     ;;

------------
TRANSACTIONS
------------
Trx id counter 200540
Purge done for trx's n:o < 200540 undo n:o < 0 state: running but idle
History list length 12
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421361140253176, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421361140248920, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421361140244664, 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
864 OS file reads, 482554 OS file writes, 236335 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 13.43 writes/s, 6.13 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 1 buffer(s)
Hash table size 69257, node heap has 9 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 25 buffer(s)
Hash table size 69257, node heap has 0 buffer(s)
8.36 hash searches/s, 0.19 non-hash searches/s
---
LOG
---
Log sequence number 114591196
Log flushed up to   114591081
Pages flushed up to 114588778
Last checkpoint at  114576251
0 pending log flushes, 0 pending chkp writes
132720 log i/o's done, 3.49 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 285212672
Dictionary memory allocated 312624
Buffer pool size   16024
Free buffers       14815
Database pages     1143
Old database pages 401
Modified db pages  5
Percent of dirty pages(LRU & free pages): 0.031
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 705, created 438, written 308213
0.00 reads/s, 0.00 creates/s, 8.83 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: 1143, unzip_LRU len: 0
I/O sum[0]:cur[21], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=903, Main thread ID=139885398714112, state: sleeping
Number of rows inserted 744, updated 77759, deleted 4, read 3624651
0.00 inserts/s, 1.91 updates/s, 0.00 deletes/s, 4.23 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 18548
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================