Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
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
Set default





Collapse Expand Requery Edit Explain Profiling Query failed Database : Queried time :

Storage engines

InnoDB Documentation

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

[ Variables | Buffer Pool | InnoDB Status ]


=====================================
2026-06-01 17:23:04 0x70c INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 19 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 25144 srv_active, 0 srv_shutdown, 254847 srv_idle
srv_master_thread log flush and writes: 279991
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 470324
OS WAIT ARRAY INFO: signal count 335980
RW-shared spins 927643, rounds 12695606, OS waits 248964
RW-excl spins 48592, rounds 298116, OS waits 3964
RW-sx spins 267, rounds 3941, OS waits 85
Spin rounds per wait: 13.69 RW-shared, 6.14 RW-excl, 14.76 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2026-06-01 16:40:17 0xac8 Transaction:
TRANSACTION 385618, ACTIVE 0 sec inserting
mysql tables in use 1, locked 1
9 lock struct(s), heap size 1128, 4 row lock(s), undo log entries 1
MySQL thread id 936072, OS thread handle 2760, query id 3614699 UGD-RSPMS 192.168.40.88 admiN Update
insert into rawat_inap_drpr values('2026/06/01/000014','RI01026','2015122003','-','2026-06-01','16:40:10','124000.0','0.0','0.0','0.0','0.0','0.0','124000.0')
Foreign key constraint fails for table `sik`.`rawat_inap_drpr`:
,
  CONSTRAINT `rawat_inap_drpr_ibfk_4` FOREIGN KEY (`nip`) REFERENCES `petugas` (`nip`) ON UPDATE CASCADE in parent table, in index rawat_inap_drpr_ibfk_4 tuple:
DATA TUPLE: 6 fields;
 0: len 1; hex 2d; asc -;;
 1: len 17; hex 323032362f30362f30312f303030303134; asc 2026/06/01/000014;;
 2: len 7; hex 52493031303236; asc RI01026;;
 3: len 10; hex 32303135313232303033; asc 2015122003;;
 4: len 3; hex 8fd4c1; asc    ;;
 5: len 3; hex 810a0a; asc    ;;

But in parent table `sik`.`petugas`, in index PRIMARY,
the closest match we can find is record:
PHYSICAL RECORD: n_fields 14; compact format; info bits 0
 0: len 2; hex 3031; asc 01;;
 1: len 6; hex 000000000000; asc       ;;
 2: len 7; hex 80000000000000; asc        ;;
 3: len 4; hex 67697a69; asc gizi;;
 4: len 1; hex 01; asc  ;;
 5: len 0; hex ; asc ;;
 6: len 3; hex 8fd072; asc   r;;
 7: len 1; hex 01; asc  ;;
 8: len 5; hex 49534c414d; asc ISLAM;;
 9: len 1; hex 02; asc  ;;
 10: len 0; hex ; asc ;;
 11: len 4; hex 4a303235; asc J025;;
 12: len 0; hex ; asc ;;
 13: len 1; hex 02; asc  ;;

------------
TRANSACTIONS
------------
Trx id counter 385798
Purge done for trx's n:o < 385798 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 281958153376464, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153372296, ACTIVE 0 sec
mysql tables in use 6, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 938948, OS thread handle 2472, query id 3627884 GIZI 192.168.40.99 admiN Sending data
select rawat_inap_drpr.no_rawat,reg_periksa.no_rkm_medis,pasien.nm_pasien,concat(rawat_inap_drpr.kd_jenis_prw,' ',jns_perawatan_inap.nm_perawatan),rawat_inap_drpr.kd_dokter,dokter.nm_dokter,rawat_inap_drpr.nip,petugas.nama,rawat_inap_drpr.tgl_perawatan,rawat_inap_drpr.jam_rawat,rawat_inap_drpr.biaya_rawat,rawat_inap_drpr.kd_jenis_prw, rawat_inap_drpr.tarif_tindakandr,rawat_inap_drpr.tarif_tindakanpr,rawat_inap_drpr.kso,rawat_inap_drpr.material,rawat_inap_drpr.bhp,rawat_inap_drpr.menejemen from pasien inner join reg_periksa inner join jns_perawatan_inap inner join dokter inner join rawat_inap_d
Trx read view will not see trx with id >= 385798, sees < 385551
---TRANSACTION 385551, ACTIVE 3989 sec
2 lock struct(s), heap size 1128, 1 row lock(s)
MySQL thread id 938938, OS thread handle 4836, query id 3611883 NS01 192.168.40.24 admiN 
---TRANSACTION 281958153355624, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153343120, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153347288, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153363960, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153351456, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153397304, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153380632, ACTIVE 1 sec starting index read
mysql tables in use 6, locked 0
0 lock struct(s), heap size 1128, 0 row lock(s)
MySQL thread id 900649, OS thread handle 4452, query id 3627376 FARMASILKT-PC 192.168.40.25 admiN Sending data
select resep_obat.no_resep,resep_obat.tgl_peresepan,resep_obat.jam_peresepan, resep_obat.no_rawat,pasien.no_rkm_medis,pasien.nm_pasien,resep_obat.kd_dokter,dokter.nm_dokter, if(resep_obat.tgl_perawatan='0000-00-00','Belum Terlayani','Sudah Terlayani') as status,poliklinik.nm_poli,  reg_periksa.kd_poli,penjab.png_jawab,if(resep_obat.tgl_perawatan='0000-00-00','',resep_obat.tgl_perawatan) as tgl_perawatan, if(resep_obat.jam='00:00:00','',resep_obat.jam) as jam, if(resep_obat.tgl_penyerahan='0000-00-00','',resep_obat.tgl_penyerahan) as tgl_penyerahan, if(resep_obat.jam_penyerahan='00:00:00','',re
Trx read view will not see trx with id >= 385798, sees < 385551
---TRANSACTION 281958153409808, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153359792, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153422312, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153401472, not started
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION 281958153743248, 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
31860653 OS file reads, 249282 OS file writes, 97606 OS fsyncs
2 pending reads, 0 pending writes
278.88 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 341, seg size 343, 59115 merges
merged operations:
 insert 110942, delete mark 3066, delete 1140
discarded operations:
 insert 0, delete mark 0, delete 0
Hash table size 4441, node heap has 22 buffer(s)
Hash table size 4441, node heap has 13 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 2 buffer(s)
Hash table size 4441, node heap has 3 buffer(s)
Hash table size 4441, node heap has 4 buffer(s)
Hash table size 4441, node heap has 30 buffer(s)
6078.36 hash searches/s, 2154.26 non-hash searches/s
---
LOG
---
Log sequence number 7978465722
Log flushed up to   7978465722
Pages flushed up to 7978465722
Last checkpoint at  7978465713
0 pending log flushes, 0 pending chkp writes
49401 log i/o's done, 0.00 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 553648128
Dictionary memory allocated 2421368
Buffer pool size   1003
Free buffers       0
Database pages     927
Old database pages 360
Modified db pages  0
Percent of dirty pages(LRU & free pages): 0.000
Max dirty pages percent: 75.000
Pending reads 2
Pending writes: LRU 0, flush list 0, single page 0
Pages made young 1503500, not young 1368591274
0.16 youngs/s, 12028.00 non-youngs/s
Pages read 31859678, created 2062, written 184109
278.77 reads/s, 0.00 creates/s, 0.00 writes/s
Buffer pool hit rate 988 / 1000, young-making rate 0 / 1000 not 502 / 1000
Pages read ahead 8.74/s, evicted without access 1.11/s, Random read ahead 0.00/s
LRU len: 927, unzip_LRU len: 0
I/O sum[24249]:cur[2826], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
2 read views open inside InnoDB
Process ID=3648, Main thread ID=1444, state: sleeping
Number of rows inserted 60527, updated 5565, deleted 1380, read 1453701384
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 8200.83 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 51180
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================