SHOW ENGINE INNODB STATUS\G ;
SQL 语句查询当前InnoDB引擎状态
*************************** 1. row *************************** Type: InnoDB Name: Status: =====================================2015-05-31 22:16:31 2b47fc0a0940 INNODB MONITOR OUTPUT=====================================Per second averages calculated from the last 25 seconds-----------------BACKGROUND THREAD-----------------srv_master_thread loops: 4 srv_active, 0 srv_shutdown, 1338948 srv_idlesrv_master_thread log flush and writes: 1338952----------SEMAPHORES----------OS WAIT ARRAY INFO: reservation count 6OS WAIT ARRAY INFO: signal count 6Mutex spin waits 140, rounds 30, OS waits 0RW-shared spins 6, rounds 180, OS waits 6RW-excl spins 0, rounds 0, OS waits 0Spin rounds per wait: 0.21 mutex, 30.00 RW-shared, 0.00 RW-excl------------TRANSACTIONS------------Trx id counter 2829Purge done for trx's n:o < 2828 undo n:o < 0 state: running but idleHistory list length 2LIST OF TRANSACTIONS FOR EACH SESSION:---TRANSACTION 0, not startedMySQL thread id 19554, OS thread handle 0x2b47fc0a0940, query id 214 localhost root initSHOW ENGINE INNODB STATUS--------FILE I/O--------I/O thread 0 state: waiting for i/o request (insert buffer thread)I/O thread 1 state: waiting for i/o request (log thread)I/O thread 2 state: waiting for i/o request (read thread)I/O thread 3 state: waiting for i/o request (read thread)I/O thread 4 state: waiting for i/o request (read thread)I/O thread 5 state: waiting for i/o request (read thread)I/O thread 6 state: waiting for i/o request (write thread)I/O thread 7 state: waiting for i/o request (write thread)I/O thread 8 state: waiting for i/o request (write thread)I/O thread 9 state: waiting for i/o request (write thread)Pending normal aio reads: 0 [0, 0, 0, 0] , aio writes: 0 [0, 0, 0, 0] , ibuf aio reads: 0, log i/o's: 0, sync i/o's: 0Pending flushes (fsync) log: 0; buffer pool: 0183 OS file reads, 36 OS file writes, 31 OS fsyncs0.00 reads/s, 0 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 mergesmerged operations: insert 0, delete mark 0, delete 0discarded operations: insert 0, delete mark 0, delete 0Hash table size 276671, node heap has 0 buffer(s)0.00 hash searches/s, 0.00 non-hash searches/s---LOG---Log sequence number 1633853Log flushed up to 1633853Pages flushed up to 1633853Last checkpoint at 16338530 pending log writes, 0 pending chkp writes18 log i/o's done, 0.00 log i/o's/second----------------------BUFFER POOL AND MEMORY----------------------Total memory allocated 137363456; in additional pool allocated 0Dictionary memory allocated 63834Buffer pool size 8191Free buffers 8017Database pages 174Old database pages 0Modified db pages 0Pending reads 0Pending writes: LRU 0, flush list 0, single page 0Pages made young 0, not young 00.00 youngs/s, 0.00 non-youngs/sPages read 167, created 7, written 310.00 reads/s, 0.00 creates/s, 0.00 writes/sNo buffer pool page gets since the last printoutPages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/sLRU len: 174, unzip_LRU len: 0I/O sum[0]:cur[0], unzip sum[0]:cur[0]--------------ROW OPERATIONS--------------0 queries inside InnoDB, 0 queries in queue0 read views open inside InnoDBMain thread process no. 10684, id 47588084517184, state: sleepingNumber of rows inserted 2, updated 0, deleted 0, read 20.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s----------------------------END OF INNODB MONITOR OUTPUT============================1 row in set (0.00 sec)
INFORMATION_SCHEMA Tables
The CHARACTER_SETS table provides information about available character sets.
SELECT * FROM INFORMATION_SCHEMA.CHARACTER_SETS [WHERE CHARACTER_SET_NAME LIKE 'wild']
The COLLATIONS table provides information about collations for each character set.
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS [WHERE COLLATION_NAME LIKE 'wild']The ENGINES table provides information about storage engines.
SELECT * FROM INFORMATION_SCHEMA.ENGINES ;
[0] Chapter 21 INFORMATION_SCHEMA Tables
[1]
[2]