LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2007, 06:52 PM   #1
rwhite7890
LQ Newbie
 
Registered: Jun 2005
Posts: 28

Rep: Reputation: 15
MySQL Flush Logs


After logrotate ran through the cron job and rotated my mysql.log file, I see that it has zero size. I logged in and did a couple queries, and still the log has zero size. I supposed that probably after rotation that the logs were not flushed. So I flushed them, and still nothing.

This is what I have in /etc/my.cnf
log=/var/log/mysql/mysql.log

I used this command to flush:
### > mysqladmin -u root -p<pw> flush-logs

Status:
-rw-rw---- 1 mysql mysql 0 Nov 26 16:20 mysql.log

The only thing that works is to restart the server, which I do not want to do. Is a cheap hack to get this to work.

Any thoughts or ideas on why flush-logs doesn't seem to be working correctly?

Thanks...
 
Old 11-27-2007, 11:56 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
check what the log level is, generally logs are only recorded when there is an error.
you would need to set a loglevel of debug or something of that sort.
 
  


Reply


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
MySql Error Logs. shritesh Linux - Server 1 09-26-2006 07:33 AM
Help with MySQL logs icarusfall Linux - Software 0 11-14-2005 05:24 PM
flush my server logs? mikz Linux - Security 1 03-14-2005 05:34 AM
MySQL logs, problem chidomen Linux - Newbie 1 03-01-2005 01:35 PM
mysql logs on a slack dominant Slackware 6 06-21-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration