Перетащите файлы сюда

Выгрузка SQL ( 0 ) x -

Нажмите Ctrl+Enter для выполнения запроса Нажмите Enter для выполнения запроса
по возрастанию
по убыванию
Порядок сортировки:
Отладка SQL
Количество
Порядок выполнения
Занято времени
Сортировки по:
Группировать запросы
Разгруппировать запросы
Свернуть Развернуть Показать трассировку Скрыть трассировку Количество: Занято времени:
Закладки
Обновить
Добавить
Нет закладок
Добавить закладку
Параметры
Восстановить значения по умолчанию
Свернуть Развернуть Повторный запрос Изменить Анализировать Профилирование Закладка Сбой выполнения запроса База данных: Время запроса:

Механизмы хранилища

InnoDB Документация

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

[ Переменные | Буферный пул | Состояние InnoDB ]


=====================================
2025-04-27 12:48:26 0x7faa6c248700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 46 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 2029 srv_active, 0 srv_shutdown, 43942 srv_idle
srv_master_thread log flush and writes: 45958
----------
SEMAPHORES
----------
OS WAIT ARRAY INFO: reservation count 7631
OS WAIT ARRAY INFO: signal count 6312
RW-shared spins 0, rounds 7204, OS waits 3601
RW-excl spins 0, rounds 387, OS waits 17
RW-sx spins 0, rounds 0, OS waits 0
Spin rounds per wait: 7204.00 RW-shared, 387.00 RW-excl, 0.00 RW-sx
------------------------
LATEST FOREIGN KEY ERROR
------------------------
2025-04-27 07:05:10 0x7faa6c6c9700 Transaction:
TRANSACTION 39805, 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 11472, OS thread handle 140369940223744, query id 322492 192.168.30.20 root Update
INSERT INTO reservations (customer_name, restaurant_id, reservation_time)
VALUES
('Alice Smith', 2, '2025-05-02 20:30:00'),
('Bob Johnson', 3, '2025-05-03 18:45:00'),
('Carol White', 1, '2025-05-04 21:15:00')
Foreign key constraint fails for table `restaurantdb`.`reservations`:
,
  CONSTRAINT `reservations_ibfk_1` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE in parent table, in index restaurant_id tuple:
DATA TUPLE: 2 fields;
 0: len 4; hex 80000002; asc     ;;
 1: len 4; hex 80000016; asc     ;;

But in parent table `restaurantdb`.`restaurants`, 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 41976
Purge done for trx's n:o < 41976 undo n:o < 0 state: running but idle
History list length 12
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 421844933726712, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421844933722456, not started
0 lock struct(s), heap size 1136, 0 row lock(s)
---TRANSACTION 421844933718200, 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
920 OS file reads, 24437 OS file writes, 17390 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 0.43 writes/s, 0.39 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 9 buffer(s)
Hash table size 69257, node heap has 2 buffer(s)
Hash table size 69257, node heap has 25 buffer(s)
Hash table size 69257, node heap has 1 buffer(s)
Hash table size 69257, node heap has 3 buffer(s)
Hash table size 69257, node heap has 25 buffer(s)
Hash table size 69257, node heap has 0 buffer(s)
0.13 hash searches/s, 0.20 non-hash searches/s
---
LOG
---
Log sequence number 11917422
Log flushed up to   11917422
Pages flushed up to 11917422
Last checkpoint at  11917413
0 pending log flushes, 0 pending chkp writes
11400 log i/o's done, 0.26 log i/o's/second
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 285212672
Dictionary memory allocated 154976
Buffer pool size   16024
Free buffers       15010
Database pages     948
Old database pages 354
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 761, created 187, written 11050
0.00 reads/s, 0.00 creates/s, 0.13 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: 948, 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=900, Main thread ID=140369186514688, state: sleeping
Number of rows inserted 5, updated 2193, deleted 0, read 905064
0.00 inserts/s, 0.04 updates/s, 0.00 deletes/s, 0.11 reads/s
Number of system rows inserted 0, updated 0, deleted 0, read 3417
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
END OF INNODB MONITOR OUTPUT
============================