Not sure if the post title actually reflects the contents.
This post describes how you can obtain the traces that MySQL server leaves behind for you if you ask it to. Once you have the traces, you can use it for:
- Debugging - It can help you to find out which source file is the server crashing, for eg.
- Learn- learn more about which functions/methods are called for a particular query by the client
Okay, so lets start.
Traceable Server
To be able to obtain traces, your server needs to be compiled with "debug" enabled. If the version information shows you something like this:
Ver 5.1.24-rc-debug for pc-linux-gnu on i686 (Source distribution)
with 'debug' appended to the version name, then you have a traceable server, else you will have to recompile it by enabling debug support:
./configure …[Read more]