Letakkan berkas disini

SQL upload ( 0 ) x -

Tekan Ctrl+Enter untuk menjalankan kueri Press Enter to execute query
ascending
descending
Order:
Men-Debug SQL
Jumlah
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Tampilkan Buka Show trace Hide trace Count: Waktu yang dipakai:
Opsi
Restore default values
Tampilkan Buka Kueri ulang Ubah Jelaskan Profil Kueri gagal Basis data: Waktu eksekusi kueri:

Storage engines

InnoDB Dokumentasi

Supports transactions, row-level locking, and foreign keys

[ Variabel | Penampungan Penyangga | Status InnoDB ]


=====================================
2025-11-04 06:12:09 0x7fcb940bd700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 11 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 50 srv_active, 0 srv_shutdown, 631 srv_idle
srv_master_thread log flush and writes: 0
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 107
OS WAIT ARRAY INFO: signal count 107
RW-shared spins 3, rounds 5, OS waits 2
RW-excl spins 4, rounds 120, OS waits 4
RW-sx spins 0, rounds 0, OS waits 0
Spin rounds per wait: 1.67 RW-shared, 30.00 RW-excl, 0.00 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-11-04 06:12:09 0x7fcb8c062700 Transaction:
TRANSACTION 10076, ACTIVE 0 sec inserting
mysql tables in use 1, locked 1
3 lock struct(s), heap size 1136, 1 row lock(s), undo log entries 1
MySQL thread id 4467, OS thread handle 140512204302080, query id 48011 192.168.30.20 root update
INSERT INTO MARK (mark_id, student_id, subject, marks) VALUES
(101, 1, 'DBMS', 85),
(102, 2, 'DBMS', 90),
(103, 3, 'DBMS', 78),
(104, 5, 'DBMS', 88)
Foreign key constraint fails for table `JOSH`.`MARK`:
,
  CONSTRAINT `MARK_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `STUDENT` (`student_id`)
Trying to add in child table, in index student_id tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000001; asc     ;;
 1: len 4; hex 80000065; asc    e;;

But in parent table `JOSH`.`STUDENT`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 1; compact format; info bits 0
 0: len 8; hex 696e66696d756d00; asc infimum ;;

------------
TRANSACTIONS
------------
Trx id counter 10077
Purge done for trx's n:o < 10076 undo n:o < 0 state: running but idle
History list length 6
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421987348019816, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421987348018944, 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
1318 OS file reads, 2067 OS file writes, 784 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.09 writes/s, 0.09 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 1 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)
538.50 hash searches/s, 139.81 non-hash searches/s
---
LOG
---
Log sequence number          51259188
Log buffer assigned up to    51259188
Log buffer completed up to   51259188
Log written up to            51259188
Log flushed up to            51259188
Added dirty pages up to      51259030
Pages flushed up to          51259030
Last checkpoint at           51259030
637 log i/o's done, 0.10 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 137363456
Dictionary memory allocated 777160
Buffer pool size   8192
Free buffers       6781
Database pages     1395
Old database pages 494
Modified db pages  2
Pending reads      0
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 539, not young 890
0.00 youngs/s, 0.00 non-youngs/s
Pages read 1193, created 214, written 1234
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: 1395, unzip_LRU len: 0
I/O sum[22]: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=359, Main thread ID=140511862261504 , state=sleeping
Number of rows inserted 526, updated 636, deleted 0, read 819864
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 1155.44 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================