Largue ficheiros aqui

Envio de SQL ( 0 ) x -

Definições relacionadas com a página Clique na barra para deslizar para o topo da página
Use Ctrl+Enter para executar a consulta Pressione Enter para executar consulta
Ascendente
Descendente
Ordem:
Depurar SQL
Contagem
Ordem de execução
Tempo gasto
Ordenar por:
Agrupar consultas
Desagrupar consultas
Ocultar Mostrar Mostrar rastro Ocultar rastro Contagem : Tempo gasto :
Marcadores
Actualizar
Adicionar
Sem marcadores
Adicionar marcador
Opções
Definir como predefinição





Ocultar Mostrar Re-consultar Editar Explicar Perfil Marcadores Consulta falhou Base de Dados : Tempo de execução da consulta :

Mecanismos de armazenamento

InnoDB Documentação

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

[ Variáveis | Pool de buffer | Estado do InnoDB ]


=====================================
2026-01-18 08:40:01 0x1c58 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 48 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 6189 srv_active, 0 srv_shutdown, 830091 srv_idle
srv_master_thread log flush and writes: 836280
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 98581
OS WAIT ARRAY INFO: signal count 11333
RW-shared spins 7696, rounds 219496, OS waits 6963
RW-excl spins 1236, rounds 9410, OS waits 142
RW-sx spins 62, rounds 890, OS waits 12
Spin rounds per wait: 28.52 RW-shared, 7.61 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 781141
Purge done for trx's n:o < 781141 undo n:o < 0 state: running but idle
History list length 9
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 283436979757488, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 283436979753320, 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 283436979749152, 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
14878 OS file reads, 58065 OS file writes, 31550 OS fsyncs
1.44 reads/s, 16384 avg bytes/read, 3.52 writes/s, 2.10 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)
5.19 hash searches/s, 13.00 non-hash searches/s
---
LOG
---
Log sequence number 72435935
Log flushed up to   72435915
Pages flushed up to 72426689
Last checkpoint at  72413418
0 pending log flushes, 0 pending chkp writes
20907 log i/o's done, 1.40 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 33554432
Dictionary memory allocated 565904
Buffer pool size   1003
Free buffers       737
Database pages     258
Old database pages 0
Modified db pages  17
Percent of dirty pages(LRU & free pages): 1.707
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 14692, created 1053, written 33420
1.44 reads/s, 0.00 creates/s, 1.87 writes/s
Buffer pool hit rate 968 / 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: 258, unzip_LRU len: 0
I/O sum[150]:cur[9], 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 4984, deleted 93, read 72353
0.00 inserts/s, 0.67 updates/s, 0.00 deletes/s, 6.67 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 12442
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================