Home > Database > Mysql Tutorial > body text

show engine innodb status显示信息不全如何解决_MySQL

WBOY
Release: 2016-06-01 13:23:19
Original
1260 people have browsed it

bitsCN.com 问题
执行 show engine innodb status/G 时,显示的信息不全,DEADLOCK相关信息太多,后面的都没了
原因:
这是mysql客户端的一个bug:BUG#19825,交互式客户端限制了输出信息最大为 64KB,因此更多的信息无法显示。

解决办法
解决方法有两种:
1. 启用 innodb_status_file
修改 my.cnf,增加类似下面一行
innodb_status_file = 1
就可以了。

2. 启用 innodb_monitor
mysqld在线运行时,创建 innodb_monitor 表,即可记录相关信息到日志文件
mysql> create table innodb_monitor ( id int ) engine = innodb;
相关的信息就会输出到 .err 日志文件里了。bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template