If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Log Slow Queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-04-04, 18:25
pranav610 pranav610 is offline
Registered User
 
Join Date: Jan 2004
Posts: 25
Log Slow Queries

How do I log slow queries by using --log-slow-queries?

Where do i go to change value of long_query_time to 2 sec vs default value of 10 sec
Reply With Quote
  #2 (permalink)  
Old 03-05-04, 00:14
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
Re: Log Slow Queries

Add the following to the [mysqld] section of your my.cnf (or my.ini if you are using Windows):
Code:
log-slow-queries
set-variable = long_query_time=2
http://www.mysql.com/doc/en/Option_files.html
Reply With Quote
  #3 (permalink)  
Old 03-05-04, 09:07
pranav610 pranav610 is offline
Registered User
 
Join Date: Jan 2004
Posts: 25
Thankyou, will try
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On