SlideShare a Scribd company logo
Mastering InnoDB Diagnostics Harrison Fisk Senior Principal Technical Support Engineer
Overview Lots of information Hard to understand
Easy to get overwhelmed Hard to figure out what is useful
Two methods for troubleshooting Symptom based What we will be doing today Data based
Information Sources
Sources MySQL info SHOW ENGINE INNODB STATUS
InnoDB monitors
SHOW GLOBAL STATUS
INFORMATION_SCHEMA  tables SHOW PROCESSLIST
SHOW MUTEX STATUS OS info vmstat / iostat  or Performance Monitor
Gdb ( Poor mans profiler (PMP))
OS specific tools
SHOW INNODB STATUS Be careful of truncation innodb_status_file
Table monitors Ensure enough time has passed
Exact format varies InnoDB built-in
InnoDB plugin
XtraDB
Data Dictionary
Problems InnoDB: Error: table test/parent already exists in InnoDB internal InnoDB: data dictionary. Have you deleted the .frm file InnoDB: and not used DROP TABLE? InnoDB: Cannot find table test/child2 from the internal data dictionary InnoDB: of InnoDB though the .frm file for the table exists. Maybe you InnoDB: have deleted and recreated InnoDB data files but have forgotten InnoDB: to delete the corresponding .frm files of InnoDB tables? Various errors about not being in sync
Can't drop and/or create tables or databases
Example errors:
Diagnostics InnoDB table monitor Dumps InnoDB data dictionary
Output to error log
CREATE TABLE innodb_table_monitor (id int) ENGINE=innodb;
Interpreting Ignore system tables Named  SYS_ Ignore hidden fields from InnoDB DB_ROW_ID
DB_TRX_ID
DB_ROLL_PTR Ignore hidden indexes GEN_CLUST_INDEX
Solutions Ensure  .frm  matches InnoDB Create  .frm  as needed Create another table with same structure
Copy  .frm  to the name of the table Drop orphaned  .frm  files If not in InnoDB
Remove them
Crashing
Problem mysqld Crash Signal 11 Segfault Signal 6 Abort
InnoDB loves this one May not actually notice immediately mysqld_safe restarts
Diagnostics Error log Hopefully it has info in it Core file Not enabled by default
OS often restricts setuid cores /proc/sys/fs/suid_dumpable
coreadm   General log When all else fails
Interpreting Error log Error log Look for signal type Signal 11
Signal 6 Backtrace May or may not be present OS

More Related Content

What's hot (20)

PDF
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQL
InMobi Technology
 
PDF
Really Big Elephants: PostgreSQL DW
PostgreSQL Experts, Inc.
 
PDF
Case Studies on PostgreSQL
InMobi Technology
 
PDF
PGConf.ASIA 2019 Bali - Upcoming Features in PostgreSQL 12 - John Naylor
Equnix Business Solutions
 
PDF
Get to know PostgreSQL!
Oddbjørn Steffensen
 
PDF
Optimizing MySQL
Morgan Tocker
 
PDF
12cR2 Single-Tenant: Multitenant Features for All Editions
Franck Pachot
 
PDF
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
PDF
Mysql 57-upcoming-changes
Morgan Tocker
 
PPTX
Ceph - High Performance Without High Costs
Jonathan Long
 
PPTX
Get More Out of MySQL with TokuDB
Tim Callaghan
 
PDF
What's New in PostgreSQL 9.6
EDB
 
PDF
[db tech showcase Tokyo 2017] A11: SQLite - The most used yet least appreciat...
Insight Technology, Inc.
 
PDF
Building Hybrid data cluster using PostgreSQL and MongoDB
Ashnikbiz
 
PDF
Online MySQL Backups with Percona XtraBackup
Kenny Gryp
 
PDF
2 gb or not 2gb file limits in oracle
Jean Gerard
 
PDF
MySQL 5.7 milestone
Louis liu
 
PPTX
VLDB Administration Strategies
Murilo Miranda
 
PDF
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
 
PDF
SSD Deployment Strategies for MySQL
Yoshinori Matsunobu
 
Toro DB- Open-source, MongoDB-compatible database, built on top of PostgreSQL
InMobi Technology
 
Really Big Elephants: PostgreSQL DW
PostgreSQL Experts, Inc.
 
Case Studies on PostgreSQL
InMobi Technology
 
PGConf.ASIA 2019 Bali - Upcoming Features in PostgreSQL 12 - John Naylor
Equnix Business Solutions
 
Get to know PostgreSQL!
Oddbjørn Steffensen
 
Optimizing MySQL
Morgan Tocker
 
12cR2 Single-Tenant: Multitenant Features for All Editions
Franck Pachot
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
Mysql 57-upcoming-changes
Morgan Tocker
 
Ceph - High Performance Without High Costs
Jonathan Long
 
Get More Out of MySQL with TokuDB
Tim Callaghan
 
What's New in PostgreSQL 9.6
EDB
 
[db tech showcase Tokyo 2017] A11: SQLite - The most used yet least appreciat...
Insight Technology, Inc.
 
Building Hybrid data cluster using PostgreSQL and MongoDB
Ashnikbiz
 
Online MySQL Backups with Percona XtraBackup
Kenny Gryp
 
2 gb or not 2gb file limits in oracle
Jean Gerard
 
MySQL 5.7 milestone
Louis liu
 
VLDB Administration Strategies
Murilo Miranda
 
Highly efficient backups with percona xtrabackup
Nilnandan Joshi
 
SSD Deployment Strategies for MySQL
Yoshinori Matsunobu
 

Viewers also liked (20)

PDF
Extensible Data Modeling
Karwin Software Solutions LLC
 
PDF
MySQL Group Replication
Manish Kumar
 
PPTX
Mysql参数-GDB
zhaolinjnu
 
PDF
MySQL Replication Performance Tuning for Fun and Profit!
Vitor Oliveira
 
PDF
MySQL High Availability with Group Replication
Nuno Carvalho
 
PPT
Mysql high availability and scalability
yin gong
 
PDF
Galera cluster for high availability
Mydbops
 
PDF
A New Architecture for Group Replication in Data Grid
Editor IJCATR
 
PDF
MySQL Best Practices - OTN LAD Tour
Ronald Bradford
 
PDF
SQL Outer Joins for Fun and Profit
Karwin Software Solutions LLC
 
PDF
MySQL High Availability Solutions
Lenz Grimmer
 
PDF
MySQL High Availability and Disaster Recovery with Continuent, a VMware company
Continuent
 
PDF
MySQL InnoDB 源码实现分析(一)
frogd
 
ODP
Mysql For Developers
Carol McDonald
 
PDF
Using Apache Spark and MySQL for Data Analysis
Sveta Smirnova
 
PDF
Java MySQL Connector & Connection Pool Features & Optimization
Kenny Gryp
 
PDF
MySQL 5.7: Focus on InnoDB
Mario Beck
 
PPTX
MySQL aio
zhaolinjnu
 
PDF
MySQL InnoDB Cluster and Group Replication - OSI 2017 Bangalore
Sujatha Sivakumar
 
PDF
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
Extensible Data Modeling
Karwin Software Solutions LLC
 
MySQL Group Replication
Manish Kumar
 
Mysql参数-GDB
zhaolinjnu
 
MySQL Replication Performance Tuning for Fun and Profit!
Vitor Oliveira
 
MySQL High Availability with Group Replication
Nuno Carvalho
 
Mysql high availability and scalability
yin gong
 
Galera cluster for high availability
Mydbops
 
A New Architecture for Group Replication in Data Grid
Editor IJCATR
 
MySQL Best Practices - OTN LAD Tour
Ronald Bradford
 
SQL Outer Joins for Fun and Profit
Karwin Software Solutions LLC
 
MySQL High Availability Solutions
Lenz Grimmer
 
MySQL High Availability and Disaster Recovery with Continuent, a VMware company
Continuent
 
MySQL InnoDB 源码实现分析(一)
frogd
 
Mysql For Developers
Carol McDonald
 
Using Apache Spark and MySQL for Data Analysis
Sveta Smirnova
 
Java MySQL Connector & Connection Pool Features & Optimization
Kenny Gryp
 
MySQL 5.7: Focus on InnoDB
Mario Beck
 
MySQL aio
zhaolinjnu
 
MySQL InnoDB Cluster and Group Replication - OSI 2017 Bangalore
Sujatha Sivakumar
 
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group Replication
Kenny Gryp
 
Ad

Similar to Mastering InnoDB Diagnostics (20)

PPT
jacobs_tuuri_performance
Hiroshi Ono
 
PDF
Measuring Firebird Disk I/O
Mind The Firebird
 
ODP
MySQL HA
Kris Buytaert
 
PDF
Debugging ZFS: From Illumos to Linux
Serapheim-Nikolaos Dimitropoulos
 
PPTX
Drupal Backend Performance and Scalability
Ashok Modi
 
PDF
Optimizing LAMPhp Applications
Piyush Goel
 
PPTX
Introductiontoasp netwindbgdebugging-100506045407-phpapp01
Camilo Alvarez Rivera
 
PDF
MySQL Oslayer performace optimization
Louis liu
 
PDF
Java File I/O Performance Analysis - Part I - JCConf 2018
Michael Fong
 
PPT
Sql server performance tuning and optimization
Manish Rawat
 
PPTX
Python mongo db-training-europython-2011
Andreas Jung
 
PPT
Hadoop architecture (Delhi Hadoop User Group Meetup 10 Sep 2011)
Hari Shankar Sreekumar
 
ODP
Experience In Building Scalable Web Sites Through Infrastructure's View
Phuwadon D
 
PDF
All About Storeconfigs
Brice Figureau
 
PDF
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
PPT
Hadoop Architecture
Delhi/NCR HUG
 
PDF
What is new in MariaDB 10.6?
Mydbops
 
PPTX
Web scale MySQL at Facebook (Domas Mituzas)
Ontico
 
ODP
Pro PostgreSQL, OSCon 2008
Robert Treat
 
ODP
New Oracle Infrastructure2
markleeuw
 
jacobs_tuuri_performance
Hiroshi Ono
 
Measuring Firebird Disk I/O
Mind The Firebird
 
MySQL HA
Kris Buytaert
 
Debugging ZFS: From Illumos to Linux
Serapheim-Nikolaos Dimitropoulos
 
Drupal Backend Performance and Scalability
Ashok Modi
 
Optimizing LAMPhp Applications
Piyush Goel
 
Introductiontoasp netwindbgdebugging-100506045407-phpapp01
Camilo Alvarez Rivera
 
MySQL Oslayer performace optimization
Louis liu
 
Java File I/O Performance Analysis - Part I - JCConf 2018
Michael Fong
 
Sql server performance tuning and optimization
Manish Rawat
 
Python mongo db-training-europython-2011
Andreas Jung
 
Hadoop architecture (Delhi Hadoop User Group Meetup 10 Sep 2011)
Hari Shankar Sreekumar
 
Experience In Building Scalable Web Sites Through Infrastructure's View
Phuwadon D
 
All About Storeconfigs
Brice Figureau
 
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
Hadoop Architecture
Delhi/NCR HUG
 
What is new in MariaDB 10.6?
Mydbops
 
Web scale MySQL at Facebook (Domas Mituzas)
Ontico
 
Pro PostgreSQL, OSCon 2008
Robert Treat
 
New Oracle Infrastructure2
markleeuw
 
Ad

Recently uploaded (20)

PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 

Mastering InnoDB Diagnostics