LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-22-2008, 09:00 AM   #1
FredJones
Member
 
Registered: Mar 2008
Distribution: ArchLinux 64 bit (with Openbox and fbpanel)
Posts: 136

Rep: Reputation: 23
How do I Active MySQL Query Log?


I need to active the MySQL query log on:

Server version: 5.0.45 Source distribution

I tried editing

/etc/my.cnf

and mine now looks like:

Code:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
wait_timeout=1800
max_connections=150
connect_timeout=10

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log=/var/log/mysqld.log
log-output = FILE,TABLE
and of course I ran:

Code:
service mysqld restart

but when I view /var/log/mysqld.log I just see startup/shutdown things, but no queries. Can anyone point me in the right direction to get the query log turned on?

Thanks!
 
Old 06-22-2008, 09:24 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
http://publib.boulder.ibm.com/infoce...nablelogs.html seems to have a few more things enabled than in your my.cnf file. Try adding them and restarting the logging and post back the results.
 
Old 06-22-2008, 01:41 PM   #3
FredJones
Member
 
Registered: Mar 2008
Distribution: ArchLinux 64 bit (with Openbox and fbpanel)
Posts: 136

Original Poster
Rep: Reputation: 23
Doesn't seem to help.
 
  


Reply



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
OpenLDAP query Active Directory noir911 Linux - Server 0 04-30-2008 06:18 AM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 07:30 AM
mysql use output of one query in another query secretlydead Programming 2 11-19-2007 01:25 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM
Mysql Error: Lost Connection to Mysql during query ramnath Programming 5 11-18-2003 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:29 AM.

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