title: How to log slow queries in MySQL 5.0.45
body: <p>I am trying to turn on logging of slow queries on MySQL v5.0.45 (compile OS: redhat-linus-gnu), but I can't seem to get it working.  I tried adding...</p>
  
  <pre><code>long_query_time = 1
  </code></pre>
  
  <p>to my /etc/my.cnf file as the last option under the [mysqld] section and then I restarted using the command...</p>
  
  <pre><code>sudo /sbin/service mysqld restart --log-slow-queries=/var/log/slowqueries.log
  </code></pre>
  
  <p>Then I ran programs where I know the SELECT query is taking around 6-8 seconds, but I can't find the log anywhere.  Any ideas?</p>