1.找到mysqld的id
[root@default-tpl ~]# ps aux|grep mysqld
root 5006 0.0 0.0 103252 796 pts/6 S+ 15:15 0:00 grep mysqld
mysql 0.0 4.0 817168 47068 ? Sl Sep11 12:09 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/var/lib/mysql --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/lib/mysql/default-tpl.jx.diditaxi.com.pid --socket=/var/lib/mysql/mysql.sock
[root@default-tpl ~]#
2.gdb加载
#gdb
(gdb) attach 27888
(gdb) br /home/mysql-5.5.43/storage/innobase/include/read0read.ic:59
(gdb) c
3.新开一个客户端
mysql -uroot -S /var/lib/mysql/mysql.sock -p
/usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/var/lib/mysql --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/lib/mysql/default-tpl.jx.diditaxi.com.pid --socket=/var/lib/mysql/mysql.sock
下载mysql 路径
https://downloads.mariadb.com/archive/index/p/mysql/v/