Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

调试技巧

MySQL 中有一些特殊的结构体,和 stl 的container类似,作为基础构建,我们可以无理由的相信他一定不会出问题, 我们只需要关注其内容即可,所以针对这部分实现了类似 std 容器的 pretty printer,MySQL pretty printer,可以方便的打印出 MySQL 内部的一些数据结构。例如

  • list
  • vecotors
  • lock ...

其次对于一些大型结构,为了方便快速了解其大致结果,实现了一些特殊的 command,例如

  • query_block tree,为了快速的了解其结构,除了使用 session debug = ast 之外,还可以用 'my qtree xx' ...