简体   繁体   English

mysql显示innodb状态输出

[英]mysql show innodb status output

i am trying to view the buffer pool and row stats that is usually shown when running SHOW INNODB STATUS . 我正在尝试查看运行SHOW INNODB STATUS时通常显示的缓冲池和行统计信息。

But for some reason this infomation is not being displayed, just lots of record locks. 但由于某种原因,这个信息没有显示,只有很多记录锁定。 Does anyone now how to view the buffer pool infomation? 现在有人如何查看缓冲池信息?

Update 更新

After reading the MySQL docs again, i noticed this: 在再次阅读MySQL文档后,我注意到了这一点:

InnoDB Monitor output is limited to 64,000 bytes when produced using 
the SHOW ENGINE INNODB STATUS statement. This limit does not apply to 
output written to the server's error output.

Answer I found the answer i was looking for, 回答我找到了我想要的答案,

here: A quest for the full InnoDB status 在这里: 寻求完整的InnoDB状态

Also how to clear the deadlocks here: How to deliberately cause a deadlock in MySQL 另外如何清除这里的死锁: 如何在MySQL中故意造成死锁

Thanks 谢谢

Try this: 尝试这个:

SHOW ENGINE INNODB STATUS\G

See here for more http://dev.mysql.com/doc/refman/5.0/en/innodb-monitors.html 有关详细信息,请参阅此处http://dev.mysql.com/doc/refman/5.0/en/innodb-monitors.html

After reading the mysql docs again, i noticed this: "InnoDB Monitor output is limited to 64,000 bytes when produced using the SHOW ENGINE INNODB STATUS statement. This limit does not apply to output written to the server's error output." 在再次阅读mysql文档后,我注意到这一点:“使用SHOW ENGINE INNODB STATUS语句生成时,InnoDB Monitor输出限制为64,000字节。此限制不适用于写入服务器错误输出的输出。”

here is more information about inndb status: A quest for the full InnoDB status 这里有关于inndb状态的更多信息:寻求完整的InnoDB状态

Also how to clear the deadlocks here: How to deliberately cause a deadlock in MySQL 另外如何清除这里的死锁:如何在MySQL中故意造成死锁

MySQL does not have the InnoDB Buffer Pool in its INFORMATION_SCHEMA database MySQL在其INFORMATION_SCHEMA数据库中没有InnoDB缓冲池

Interesting, XtraDB (used in MariaDB and Percona Server) does have INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES. 有趣的是,XtraDB(在MariaDB和Percona Server中使用)确实有INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES。

If you really need to see the InnoDB Buffer Pool, switch to MariaDB or Percona Server. 如果您确实需要查看InnoDB缓冲池,请切换到MariaDB或Percona Server。

运行这个:

show global status like 'innodb_buffer_pool%';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM