0

Latest MySQL Sandbox version uses environment variable SBDEBUG to start mysql instances in debug mode, but i can't pass mysql --debug option.

export SBDEBUG=d:t:O,/tmp/client.trace
cd ~/sandboxes/msb_5_6_13
./start

I want to get strace output. How can i do that ? Links:

artyomboyko
  • 143
  • 1
  • 6

1 Answers1

1

You can probably try starting the server normally with --debug flag, get it's PID using ps aux or pgrep, then use strace to attach to that running process using strace -p $PID. You also probably want to follow forks/child processes with the -f flags to strace. Here is a handy cheat sheet for strace that I like to use.

capotej
  • 111
  • 2