Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-10-2009, 07:02 AM   #1
Registered: Aug 2009
Posts: 30

Rep: Reputation: 0
Log slow queries mysql

Hello, I would like to log slow queries in mysql I found the script for that
log-slow-queries = /var/log/mysql/mysql-slow.log
long_query_time = 1
But in my /var/log directory I haven't got folder named mysql or file named mysql-slow.log If I want to use this script will I have to create /mysql/mysql-slow.log in var/log directory ?
Old 09-10-2009, 08:14 AM   #2
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
This is not a script. these are configuration settings that you need to keep in your configuration files, OR you can start mysql with these options.

Check out this link


log, mysql, queries, query

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log some kind of queries with BIND 9 sjfdj Linux - Server 1 09-17-2008 05:33 AM
DNS queries slow up when hit Authority Section Ealric Linux - Server 4 02-11-2008 06:50 PM
slow wireless only in linux, many dns queries true_atlantis Linux - Wireless Networking 5 06-10-2006 05:07 AM
mutlithreaded client slow mysql queries gecoool Programming 3 10-11-2005 02:26 AM
PHP Script to retrieve queries from log file saravanan1979 Programming 1 03-17-2002 09:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration