Chapter 14 The InnoDB Storage Engine

Table of Contents

14.1 Introduction to InnoDB 1.1
14.1.1 Features of the InnoDB Storage Engine
14.1.2 InnoDB as the Default MySQL Storage Engine
14.1.3 Checking InnoDB Availability
14.1.4 Turning Off InnoDB
14.1.5 Obtaining and Installing the InnoDB Storage Engine
14.1.6 Viewing the InnoDB Storage Engine Version Number
14.1.7 Compatibility Considerations for Downgrade and Backup
14.1.8 InnoDB Storage Engine Change History
14.1.9 Third-Party Software Contributions
14.2 Installing the InnoDB Storage Engine
14.3 Upgrading the InnoDB Storage Engine
14.4 Downgrading the InnoDB Storage Engine
14.5 InnoDB Concepts and Architecture
14.5.1 MySQL and the ACID Model
14.5.2 The InnoDB Transaction Model and Locking
14.5.3 InnoDB Multi-Versioning
14.5.4 InnoDB Redo Log
14.5.5 InnoDB Rollback Segments
14.5.6 InnoDB Table and Index Structures
14.5.7 InnoDB Mutex and Read/Write Lock Implementation
14.6 InnoDB Configuration
14.6.1 InnoDB Initialization and Startup Configuration
14.6.2 InnoDB Buffer Pool Configuration
14.6.3 Configuring the Memory Allocator for InnoDB
14.6.4 Configuring InnoDB Change Buffering
14.6.5 Configuring Thread Concurrency for InnoDB
14.6.6 Configuring the Number of Background InnoDB I/O Threads
14.6.7 Configuring the InnoDB Master Thread I/O Rate
14.6.8 Configuring Spin Lock Polling
14.6.9 Configuring InnoDB Purge Scheduling
14.6.10 Configuring Optimizer Statistics for InnoDB
14.7 InnoDB Tablespace Management
14.7.1 Resizing the InnoDB System Tablespace
14.7.2 Changing the Number or Size of InnoDB Redo Log Files
14.7.3 Using Raw Disk Partitions for the System Tablespace
14.7.4 InnoDB File-Per-Table Tablespaces
14.8 InnoDB Table Management
14.8.1 Creating InnoDB Tables
14.8.2 Moving or Copying InnoDB Tables to Another Machine
14.8.3 Grouping DML Operations with Transactions
14.8.4 Converting Tables from MyISAM to InnoDB
14.8.5 AUTO_INCREMENT Handling in InnoDB
14.8.6 InnoDB and FOREIGN KEY Constraints
14.8.7 Limits on InnoDB Tables
14.9 InnoDB Table Compression
14.9.1 Overview of Table Compression
14.9.2 Enabling Compression for a Table
14.9.3 Tuning Compression for InnoDB Tables
14.9.4 Monitoring Compression at Runtime
14.9.5 How Compression Works for InnoDB Tables
14.9.6 SQL Compression Syntax Warnings and Errors
14.10 InnoDB File-Format Management
14.10.1 Enabling File Formats
14.10.2 Verifying File Format Compatibility
14.10.3 Identifying the File Format in Use
14.10.4 Downgrading the File Format
14.11 InnoDB Row Storage and Row Formats
14.11.1 Overview of InnoDB Row Storage
14.11.2 Specifying the Row Format for a Table
14.11.3 DYNAMIC and COMPRESSED Row Formats
14.11.4 COMPACT and REDUNDANT Row Formats
14.12 InnoDB Disk I/O and File Space Management
14.12.1 InnoDB Disk I/O
14.12.2 File Space Management
14.12.3 InnoDB Checkpoints
14.12.4 Defragmenting a Table
14.12.5 Reclaiming Disk Space with TRUNCATE TABLE
14.13 InnoDB Fast Index Creation
14.13.1 Overview of Fast Index Creation
14.13.2 Examples of Fast Index Creation
14.13.3 Implementation Details of Fast Index Creation
14.13.4 Concurrency Considerations for Fast Index Creation
14.13.5 How Crash Recovery Works with Fast Index Creation
14.13.6 Limitations of Fast Index Creation
14.14 InnoDB Startup Options and System Variables
14.15.1 InnoDB INFORMATION_SCHEMA Tables about Compression
14.15.2 InnoDB INFORMATION_SCHEMA Transaction and Locking Tables
14.15.3 InnoDB INFORMATION_SCHEMA Buffer Pool Tables
14.16 InnoDB Integration with MySQL Performance Schema
14.16.1 Monitoring InnoDB Mutex Waits Using Performance Schema
14.17 InnoDB Monitors
14.17.1 InnoDB Monitor Types
14.17.2 Enabling InnoDB Monitors
14.17.3 InnoDB Standard Monitor and Lock Monitor Output
14.17.4 InnoDB Tablespace Monitor Output
14.17.5 InnoDB Table Monitor Output
14.18 InnoDB Backup and Recovery
14.18.1 The InnoDB Recovery Process
14.19 InnoDB and MySQL Replication
14.20 InnoDB Troubleshooting
14.20.1 Troubleshooting InnoDB I/O Problems
14.20.2 Forcing InnoDB Recovery
14.20.3 Troubleshooting InnoDB Data Dictionary Operations
14.20.4 InnoDB Error Handling
14.20.5 InnoDB Error Codes