分析MySql Internals ClientServer Protocol的工具。
时间:2009-02-09 来源:osdba
此工具可以把
[url=javascript:;][u][b]mysql[/b][/u][/url]
客户端到服务端的通信过程中的数据包打印出来,以便做分析,下载地址为:
[url=http://space.itpub.net/batch.download.php?aid=11882]http://space.itpub.net/batch.download.php?aid=11882[/url]
使用方法为:
dbproxy 3333 3306
3333为dbproxy的监听端口,3306为mysql监听的端口。启动程序后,用mysql客户端连接到3333的端口:
mysql --port=3333
mysql>
dbproxy就会输出如下内容的包:
<<<<<<<<<<
3e 00 00 00 0a 35 2e 31 2e 33 30 2d 63 6f 6d 6d | > 5.1.30-comm
75 6e 69 74 79 00 08 00 00 00 3c 5b 36 3b 64 65 | unity <[6;de
4f 3e 00 ff f7 08 02 00 00 00 00 00 00 00 00 00 | O>
00 00 00 00 00 27 49 76 3a 5d 44 7a 5e 48 2c 43 | 'Iv:]Dz^H,C
4d 00 | M >>>>>>>>>>
3a 00 00 01 85 a6 03 00 00 00 00 01 08 00 00 00 | :
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
00 00 00 00 72 6f 6f 74 00 14 7b 55 7a 5e c9 6a | root {Uz^ j
86 cd 40 e5 a1 be 7c 1c 3c 53 f3 0e 46 40 | @ | <S F@
下载地址:
|
相关阅读 更多 +