Solved

Using mysql_slow_log_parser

Posted on 2006-11-17
1
805 Views
Last Modified: 2013-12-25
This is probably a REALLY easy one... but I never use PERL. So I am not familiar with the usage.

There is a PERL script available at http://www.retards.org/projects/mysql/ called mysql_slow_log_parser

How do I go about actually using it?

I have installed ActivePerl on my server... and I have a slow_log file from mysql that I would like to parse using this script.

My real question is how to actually instantiate the mysql_slow_log_parser script.

The webiste for the script says:

Usage: mysql_slow_log_parser logfile

so my question is this... do I download the script available at http://www.retards.org/projects/mysql/mysql_slow_log_parser then save it as  mysql_slow_log_parser.pl?

I tried that... then went to the command line and used: mysql_slow_log_parser slow_log

There is probably a very simple answer to my question... but it is urgent.

Thanks in advance.
0
Comment
Question by:rocketTendon
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 17969745
You can save it as mysql_slow_log_parser.pl then type
perl mysql_slow_log_parser.pl slow_log
or save it as mysql_slow_log_parser make it executable, and type
mysql_slow_log_parser slow_log
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now