PDF (A4) - 40.9Mb
Man Pages (TGZ) - 261.1Kb
Man Pages (Zip) - 368.3Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
The following general guidelines apply to troubleshootingInnoDB problems:
When an operation fails or you suspect a bug, look at the MySQL server error log (seeSection 7.4.2, “The Error Log”).Server Error Message Reference provides troubleshooting information for some of the common
InnoDB-specific errors that you may encounter.If the failure is related to adeadlock, run with the
innodb_print_all_deadlocksoption enabled so that details about each deadlock are printed to the MySQL server error log. For information about deadlocks, seeSection 17.7.5, “Deadlocks in InnoDB”.If the issue is related to the
InnoDBdata dictionary, seeSection 17.20.4, “Troubleshooting InnoDB Data Dictionary Operations”.When troubleshooting, it is usually best to run the MySQL server from the command prompt, rather than throughmysqld_safe or as a Windows service. You can then see whatmysqld prints to the console, and so have a better grasp of what is going on. On Windows, startmysqld with the
--consoleoption to direct the output to the console window.Enable the
InnoDBMonitors to obtain information about a problem (seeSection 17.17, “InnoDB Monitors”). If the problem is performance-related, or your server appears to be hung, you should enable the standard Monitor to print information about the internal state ofInnoDB. If the problem is with locks, enable the Lock Monitor. If the problem is with table creation, tablespaces, or data dictionary operations, refer to theInnoDB Information Schema system tables to examine contents of theInnoDBinternal data dictionary.InnoDBtemporarily enables standardInnoDBMonitor output under the following conditions:A long semaphore wait
InnoDBcannot find free blocks in the buffer poolOver 67% of the buffer pool is occupied by lock heaps or the adaptive hash index
If you suspect that a table is corrupt, run
CHECK TABLEon that table.
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 261.1Kb
Man Pages (Zip) - 368.3Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb