Troubleshooting MySQL Slow Queries with Tcpdumps

Written By
Web Webster
Web Webster
Dec 22, 2010

“MySQL has a wonderful facility for capturing slow queries
called the slow query log. However if yours is not enabled when
trouble occurs, and restarting the database is not an option,
you’ll need another solution. This is where a tcpdump can come in
handy. It can be used to watch a network interface and display the
packets and traffic. What Is A Tcpdump?

“Tcpdump is a Linux command for watching a network interface,
and displaying traffic that moves across it.

“On my Mac, the airport network interface (en1) is my main
connection to the internet. You may well want to use eth0 there.
So, I can do some packet sniffing with tcpdump as follows:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.