how to debug mysql with gdb .
Posted on 2012-04-09
i am trying to learn how to use Gdb to debug mysql. i read quite a lot website in google .. but could not straight my head ..
now from documentation ,, its saying, i need to start mysqld with gdb ..
but the way i run mysql like bellow
/opt/mysql/mysqlserver5/bin/mysqld_safe --user=mysql &
but if i use gdb infront of this command , its say, its not a binary ..
can any one tell me..
how to use gdb with mysql and get output ??
please note : I installed mysql from source .. not by yum or apt-get .
thanks for your help