MySQL 8.4.0
Source Code Documentation
Getting Started

Build from source



The easiest way to install a server, and attach a debugger to it, is to start the mysql-test-run (MTR) tool with debugging options

cd mysql-test
./mtr --ddd main.parser

The following functions are good candidates for breakpoints:

  • my_message_sql
  • dispatch_command

Replace 'main.parser' with another test script, or write your own, to debug a specific area.