Vedä tiedostot tähän

SQL upload ( 0 ) x -

Suorita kysely painamalla Ctrl+Enter Paina Enter suorittaaksesi kyselyn
nouseva
laskeva
Järjestys:
Etsi virheitä SQL-kyselystä
Laske
Suoritusjärjestys
Aikaa kului
Järjestä mukaan:
Ryhmäkyselyt
Pura ryhmäkyselyt
Paina kokoon Laajenna Näytä seuranta Piilota seuranta Luku: Aikaa kului:
Kirjanmerkit
Päivitä
Lisää
Ei kirjanmerkkejä
Lisää kirjanmerkki
Valinnat
Restore default values
Paina kokoon Laajenna Suorita hakulause uudelleen Muokkaa Selitä Profilointi Aseta kirjanmerkki Kysely epäonnistui Tietokanta: Hakulauseen suoritusaika:

Storage engines

InnoDB Ohjeet

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

[ Muuttujat | Puskurivaranto | InnoDB:n tila ]


=====================================
2025-12-24 11:38:40 0x7f14281b2700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 55 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 10963 srv_active, 0 srv_shutdown, 30650 srv_idle
srv_master_thread log flush and writes: 41609
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 34269
OS WAIT ARRAY INFO: signal count 32010
RW-shared spins 0, rounds 24434, OS waits 12154
RW-excl spins 0, rounds 2194, OS waits 80
RW-sx spins 9, rounds 119, OS waits 1
Spin rounds per wait: 24434.00 RW-shared, 2194.00 RW-excl, 13.22 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-12-24 03:11:16 0x7f14283ea700 Transaction:
TRANSACTION 49607, 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 143422, OS thread handle 139724551268096, query id 4804833 192.168.30.20 root Update
INSERT INTO mahasiswa (nim, nama, id_jurusan) VALUES
('001', 'Andi', 1),
('002', 'Budi', 2),
('003', 'Citra', 1),
('004', 'Dedi', NULL)
Foreign key constraint fails for table `mhs`.`mahasiswa`:
,
  CONSTRAINT `fk_mahasiswa_jurusan` FOREIGN KEY (`id_jurusan`) REFERENCES `jurusan` (`id_jurusan`) ON DELETE SET NULL ON UPDATE CASCADE in parent table, in index fk_mahasiswa_jurusan tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000001; asc     ;;
 1: len 3; hex 303031; asc 001;;

But in parent table `mhs`.`jurusan`, 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 82490
Purge done for trx's n:o < 82489 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421199527993848, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421199527989592, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421199527985336, 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
888 OS file reads, 158518 OS file writes, 83600 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 5.76 writes/s, 3.11 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 1 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 0 buffer(s)
2.58 hash searches/s, 1.24 non-hash searches/s
---
LOG
---
Log sequence number 39008499
Log flushed up to   39008499
Pages flushed up to 39008499
Last checkpoint at  39008417
0 pending log flushes, 0 pending chkp writes
56517 log i/o's done, 1.89 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 285212672
Dictionary memory allocated 82832
Buffer pool size   16024
Free buffers       15082
Database pages     935
Old database pages 353
Modified db pages  0
Percent of dirty pages(LRU & free pages): 0.000
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 729, created 206, written 92856
0.00 reads/s, 0.00 creates/s, 3.45 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: 935, unzip_LRU len: 0
I/O sum[0]:cur[49], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
0 read views open inside InnoDB
Process ID=922, Main thread ID=139723783784192, state: sleeping
Number of rows inserted 17, updated 21210, deleted 4, read 1603507
0.00 inserts/s, 0.73 updates/s, 0.00 deletes/s, 1.82 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 5869
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================