Debugging a running server (on Linux)
You are viewing an old version of this article. View
the current version here.
If your mysqld server hangs, you may want to debug it to know what happened.
Preferably the server should be compiled for debugging, but it's not strictly necessary:
configure --with-debug --with-valgrind make
To know what the server is doing:
- Find out the process number of mysqld
ps -edalf | grep mysqld
- Attach to the process and get a back trace:
gdb -p 'pid of mysqld' path-to-mysqld thread apply all backtrace
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.