Drop files here

SQL upload ( 0 ) x -

Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count: Time taken:
Options
Restore default values
Collapse Expand Requery Edit Explain Profiling Query failed មូលដ្ឋានទិន្នន័យ: Queried time:

Storage engines

InnoDB ឯកសារ​ជំនួយ​

Supports transactions, row-level locking, and foreign keys

[ Variables | Buffer Pool | InnoDB Status ]


=====================================
2024-09-20 01:21:17 0x7fcf3c071700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 25 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 47 srv_active, 0 srv_shutdown, 282 srv_idle
srv_master_thread log flush and writes: 0
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 90
OS WAIT ARRAY INFO: signal count 91
RW-shared spins 3, rounds 6, OS waits 3
RW-excl spins 2, rounds 60, OS waits 2
RW-sx spins 0, rounds 0, OS waits 0
Spin rounds per wait: 2.00 RW-shared, 30.00 RW-excl, 0.00 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2024-09-20 01:17:46 0x7fcf1c2d3700 Transaction:
TRANSACTION 9847, ACTIVE 0 sec inserting
mysql tables in use 1, locked 1
6 lock struct(s), heap size 1136, 7 row lock(s), undo log entries 5
MySQL thread id 763, OS thread handle 140527507683072, query id 10026 192.168.30.20 root update
INSERT INTO Orden (id_fecha, id_orden, num_art, fecha, cant) VALUES
(1, 2301, 3786, '2023-02-11', 3),
(2, 2301, 4011, '2023-02-11', 6),
(3, 2301, 9152, '2023-02-11', 8),
(4, 2302, 3794, '2023-02-25', 4),
(5, 2305, 4011, '2023-02-27', 2),
(6, 2503, 3141, '2023-02-27', 2)
Foreign key constraint fails for table `tienda_de_deportes`.`Orden`:
,
  CONSTRAINT `Orden_ibfk_2` FOREIGN KEY (`id_orden`) REFERENCES `Detalles_Orden` (`id_orden`)
Trying to add in child table, in index id_orden tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000901; asc     ;;
 1: len 4; hex 80000005; asc     ;;

But in parent table `tienda_de_deportes`.`Detalles_Orden`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 5; compact format; info bits 0
 0: len 4; hex 800008ff; asc     ;;
 1: len 6; hex 000000002647; asc     &G;;
 2: len 7; hex 820000008c012a; asc       *;;
 3: len 4; hex 8000006e; asc    n;;
 4: len 3; hex 8fce5b; asc   [;;

------------
TRANSACTIONS
------------
Trx id counter 10048
Purge done for trx's n:o < 10044 undo n:o < 0 state: running but idle
History list length 27
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 422003057793640, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 422003057792768, 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
1448 OS file reads, 1654 OS file writes, 660 OS fsyncs
1.96 reads/s, 16384 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 34679, node heap has 0 buffer(s)
Hash table size 34679, node heap has 2 buffer(s)
Hash table size 34679, node heap has 1 buffer(s)
Hash table size 34679, node heap has 1 buffer(s)
Hash table size 34679, node heap has 1 buffer(s)
Hash table size 34679, node heap has 2 buffer(s)
Hash table size 34679, node heap has 2 buffer(s)
Hash table size 34679, node heap has 6 buffer(s)
663.93 hash searches/s, 354.07 non-hash searches/s
---
LOG
---
Log sequence number          51141157
Log buffer assigned up to    51141157
Log buffer completed up to   51141157
Log written up to            51141157
Log flushed up to            51141157
Added dirty pages up to      51141157
Pages flushed up to          51141157
Last checkpoint at           51141157
487 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 137363456
Dictionary memory allocated 723837
Buffer pool size   8192
Free buffers       6690
Database pages     1487
Old database pages 568
Modified db pages  0
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 1311, created 176, written 1008
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: 1487, 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=378, Main thread ID=140527568623360 , state=sleeping
Number of rows inserted 173, updated 526, deleted 0, read 413243
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 1065.24 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================