LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 09-10-2009, 07:02 AM   #1
a4kata
LQ Newbie
 
Registered: Aug 2009
Posts: 20
Thanked: 0
Log slow queries mysql


[Log in to get rid of this advertisement]
Hello, I would like to log slow queries in mysql I found the script for that
Code:
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 ?
windows_xp_2003 a4kata is offline  
Tag This Post , , , ,
Reply With Quote
Old 09-10-2009, 08:14 AM   #2
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 165
Thanked: 21
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
http://dev.mysql.com/doc/refman/5.1/...query-log.html
windows_xp_2003 PMP is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 07:33 PM.

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