LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-17-2018, 08:14 PM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
Can not startup mysql slow query log


I have mysql 5.7 and follow the below url to setup "slow query log" , I have setup it ( with server reboot ) and run some testing , but still do not find the log in my server , the other server is OK to generate this log , would advise what is wrong with my system ? why I didn't find the log .

Code:
https://dev.mysql.com/doc/refman/8.0/en/slow-query-log.html
Code:
[mysqld]
long_query_time=1
log-slow-queries=/var/log/mysql/log-slow-queries.log

Last edited by catiewong; 09-17-2018 at 08:19 PM.
 
Old 09-17-2018, 11:43 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,365

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
If you are using mysql 5.7, you should be using the matching doc https://dev.mysql.com/doc/refman/5.7...query-log.html
 
  


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
[SOLVED] Slow MySQL query jlinkels Linux - Server 1 06-28-2017 07:52 PM
LXer: Using mysqldumpslow to read the mysql slow query log LXer Syndicated Linux News 0 05-02-2017 02:24 PM
Enabling MySQL Query log dazdaz Linux - General 1 04-14-2012 10:52 AM
log all mysql query nima0102 Linux - Server 3 12-01-2008 02:32 PM
How do I Active MySQL Query Log? FredJones Linux - Server 2 06-22-2008 01:41 PM

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

All times are GMT -5. The time now is 10:59 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