Solved

I have a problem the slow query log is not working with mysql 5.0.45

Posted on 2008-10-19
1
415 Views
Last Modified: 2012-05-05
Dear Sir/Madam
I cannot active the slow log query in mysql.  I am using windows XP professional and mysql 5.0.45. I add to my.ini the following setting:
set-variable=long_query_time=1
log_slow_queries=c:/Program Files/MySQL/MySQL Server 5.0/data/slow_query.log

But I was confuesed while I am searching on the internet some examples using log_slow_queries and others log-slow-queries.  So which I have to user dash ( - ) or underscore ( _ ) .
Thank you
0
Comment
Question by:nabil_zakkak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 26

Accepted Solution

by:
Umesh earned 50 total points
ID: 22755776
It's log-slow-queries

http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html

It seems your path for slow query log includes space... pls include the path in double quote and restart the server...

log-slow-queries="c:/Program Files/MySQL/MySQL Server 5.0/data/slow_query.log"
0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fix Datetime in MySQL? 4 76
Very Large data in MYSQL 7 107
show child records separated by commas 12 50
Add a date range function to PDF Generation 9 41
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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