<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：用Tcpdump抓取MySQL执行的SQL</title>
	<atom:link href="http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/</link>
	<description>MySQL支持，提供专业技术支持性能调优，架构设计</description>
	<lastBuildDate>Thu, 19 Aug 2010 05:39:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：联系Q867400</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-18</link>
		<dc:creator>联系Q867400</dc:creator>
		<pubDate>Tue, 17 Nov 2009 03:27:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-18</guid>
		<description>骨头博客营销助手,快速让搜索引擎收录,快速提高网站访问量.</description>
		<content:encoded><![CDATA[<p>骨头博客营销助手,快速让搜索引擎收录,快速提高网站访问量.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：大地软件</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-17</link>
		<dc:creator>大地软件</dc:creator>
		<pubDate>Fri, 13 Nov 2009 04:24:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-17</guid>
		<description>最近有点忙,很久没有来看看了!</description>
		<content:encoded><![CDATA[<p>最近有点忙,很久没有来看看了!</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：SKON</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-16</link>
		<dc:creator>SKON</dc:creator>
		<pubDate>Thu, 12 Nov 2009 06:49:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-16</guid>
		<description>你好，我们收PR3-PR5的博客链接，每月给你钱啊，如果你有意向，请联系Q21523</description>
		<content:encoded><![CDATA[<p>你好，我们收PR3-PR5的博客链接，每月给你钱啊，如果你有意向，请联系Q21523</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Jimmy</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-11</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:26:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-11</guid>
		<description>找到原因了，因为-l参数导致的。谢谢~~

       -l     Make stdout line buffered.  Useful if you want to see the data while capturing it.  E.g.,
              ‘‘tcpdump  -l  &#124;  tee dat’’ or ‘‘tcpdump  -l   &gt; dat  &amp;  tail  -f  dat’’.</description>
		<content:encoded><![CDATA[<p>找到原因了，因为-l参数导致的。谢谢~~</p>
<p>       -l     Make stdout line buffered.  Useful if you want to see the data while capturing it.  E.g.,<br />
              ‘‘tcpdump  -l  |  tee dat’’ or ‘‘tcpdump  -l   &gt; dat  &amp;  tail  -f  dat’’.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Jimmy</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-10</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:01:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-10</guid>
		<description>我本地连接到外网数据库，执行如下sql，仍然抓不到任何数据。。。。。。
 select * from productdata_tab where times like &#039;200908&#039; ;


不知道LZ的tcpdump和libpcap是什么版本的？
[root@monitor ~]# tcpdump -V
tcpdump version 3.8
libpcap version 0.8.3
[root@yz250-207 ~]# tcpdump -V^M
tcpdump version 3.9.4
libpcap version 0.9.4

这两个版本都不行……</description>
		<content:encoded><![CDATA[<p>我本地连接到外网数据库，执行如下sql，仍然抓不到任何数据。。。。。。<br />
 select * from productdata_tab where times like &#8216;200908&#8242; ;</p>
<p>不知道LZ的tcpdump和libpcap是什么版本的？<br />
[root@monitor ~]# tcpdump -V<br />
tcpdump version 3.8<br />
libpcap version 0.8.3<br />
[root@yz250-207 ~]# tcpdump -V^M<br />
tcpdump version 3.9.4<br />
libpcap version 0.9.4</p>
<p>这两个版本都不行……</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Jimmy</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-9</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Fri, 06 Nov 2009 02:53:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-9</guid>
		<description>[root@monitor ~]# tcpdump -i eth0 -s 0 -l -w – dst port 3306 &#124; strings
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes


65 packets captured
65 packets received by filter
0 packets dropped by kernel

[root@monitor ~]# tcpdump -i eth0 -s 0 -l -w – dst port 3306          
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes



5 packets captured
5 packets received by filter
0 packets dropped by kernel
[root@monitor ~]# 


仍然不行……</description>
		<content:encoded><![CDATA[<p>[root@monitor ~]# tcpdump -i eth0 -s 0 -l -w – dst port 3306 | strings<br />
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes</p>
<p>65 packets captured<br />
65 packets received by filter<br />
0 packets dropped by kernel</p>
<p>[root@monitor ~]# tcpdump -i eth0 -s 0 -l -w – dst port 3306<br />
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes</p>
<p>5 packets captured<br />
5 packets received by filter<br />
0 packets dropped by kernel<br />
[root@monitor ~]# </p>
<p>仍然不行……</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：wubx</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-8</link>
		<dc:creator>wubx</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:16:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-8</guid>
		<description>使用方法错了。
使用：
tcpdump -i eth0 -s 0 -l -w – dst port 3306 &#124; strings 

这种方法去抓就行了。</description>
		<content:encoded><![CDATA[<p>使用方法错了。<br />
使用：<br />
tcpdump -i eth0 -s 0 -l -w – dst port 3306 | strings </p>
<p>这种方法去抓就行了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Jimmy</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-7</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Thu, 05 Nov 2009 03:19:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-7</guid>
		<description>waiting for your reply</description>
		<content:encoded><![CDATA[<p>waiting for your reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Jimmy</title>
		<link>http://www.mysqlsupport.cn/%e7%94%a8tcpdump%e6%8a%93%e5%8f%96mysql%e6%89%a7%e8%a1%8c%e7%9a%84sql/comment-page-1/#comment-6</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Thu, 05 Nov 2009 03:18:28 +0000</pubDate>
		<guid isPermaLink="false">#comment-6</guid>
		<description>hello。我按照你的文档，做了一次尝试。没有抓到任何mysql数据……，如下：
[root@monitor ~]#  tcpdump -i eth0 -vvv -s 0  dst port 3306            
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
10:41:31.602609 IP (tos 0x0, ttl 125, id 50624, offset 0, flags [DF], proto 6, length: 124) 61.145.225.18.2365 &gt; monitor.mysql: P [tcp sum ok] 2238329135:2238329219(84) ack 4242770225 win 64731
10:41:31.617723 IP (tos 0x0, ttl 125, id 50625, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2365 &gt; monitor.mysql: . [tcp sum ok] 84:84(0) ack 1630 win 65535
10:41:31.775732 IP (tos 0x0, ttl 125, id 50627, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2365 &gt; monitor.mysql: . [tcp sum ok] 84:84(0) ack 2434 win 64731
10:42:58.718340 IP (tos 0x0, ttl 125, id 52090, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2084 &gt; monitor.mysql: . [tcp sum ok] 4096274445:4096274445(0) ack 2678260501 win 64303</description>
		<content:encoded><![CDATA[<p>hello。我按照你的文档，做了一次尝试。没有抓到任何mysql数据……，如下：<br />
[root@monitor ~]#  tcpdump -i eth0 -vvv -s 0  dst port 3306<br />
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes<br />
10:41:31.602609 IP (tos 0&#215;0, ttl 125, id 50624, offset 0, flags [DF], proto 6, length: 124) 61.145.225.18.2365 &gt; monitor.mysql: P [tcp sum ok] 2238329135:2238329219(84) ack 4242770225 win 64731<br />
10:41:31.617723 IP (tos 0&#215;0, ttl 125, id 50625, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2365 &gt; monitor.mysql: . [tcp sum ok] 84:84(0) ack 1630 win 65535<br />
10:41:31.775732 IP (tos 0&#215;0, ttl 125, id 50627, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2365 &gt; monitor.mysql: . [tcp sum ok] 84:84(0) ack 2434 win 64731<br />
10:42:58.718340 IP (tos 0&#215;0, ttl 125, id 52090, offset 0, flags [DF], proto 6, length: 40) 61.145.225.18.2084 &gt; monitor.mysql: . [tcp sum ok] 4096274445:4096274445(0) ack 2678260501 win 64303</p>
]]></content:encoded>
	</item>
</channel>
</rss>
