Improving Innochecksum_MySQL

WBOY
發布: 2016-06-01 13:07:37
原創
940 人瀏覽過

InWL#6045we improved theinnochecksum tool so that it opens the tablespace file and validates the checksum for each page. It compares the calculated checksum to the stored checksum in the page and reports mismatches, if any. It can also now rewrite page checksums in the tablespace. It is an offline tool, however, so make sure that the MySQL server is not using the tablespace files when running the innochecksum tool.

When InnoDB encounters a page checksum mismatch, it will cause an ASSERT and perform a forced shutdown. So rather than wait for InnoDB to encounter this in production, it is better to use the innochecksum tool to validate and correct any checksum issues ahead of time. You could perform these checks on yourMySQL Enterprise Backupfiles after a backup job completes, as an example.

Again, the innochecksum tool cannot be used on tablespace files that the server already has open. When the MySQL server is running, you can instead use theCHECK TABLEcommand.

Additional new features introduced in MySQL 5.7 for this tool include:

  • Support for file sizes greater than 2GB.
  • You can specify the number of checksum mismatches allowed before terminating the program, using the new--allow-mismatchesoption.
  • You can specify the checksum algorithm to use with the new--strict-checkoption.
  • You can tell the tool to rewrite checksums in the tablespace file when mismatches are detected, using the new--writeoption.
  • You can log the output, including the calculated checksum values for each page, using the new--logoption.
  • You can list out page type summaries, using the new--page-type-summaryoption.
  • You can print the details for each page to standard output (STDOUT) or standard error (STDERR), using the new--page-type-dumpoption.
  • You can read data from standard input (STDIN), using the new-option.
  • innochecksum can now operate on multiple user-defined tablespace files.
  • innochecksum can now operate on multiple system tablespace files.

Conclusion

This post provided a brief introduction to the new features recently introduced in the innochecksum tool. For more information on the tool, please see the manualhere.

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板