Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2005, 03:29 PM
|
#1
|
LQ Newbie
Registered: Jun 2005
Location: Canada
Distribution: Ubuntu Hoary
Posts: 25
Rep:
|
Location of mysql logs?
I'm using Ubuntu, I set up Apache, MySQL, PHP. Everything runs fine, I set up --log-warnings but I don't know where the actual log file is located? I went to /etc/mysql/ but it's not there.
|
|
|
07-04-2005, 04:04 PM
|
#2
|
Member
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163
Rep:
|
You'll find mysql logs under /var/log.
Actually, this directory contains most of log files (X11, etc..).
|
|
|
12-16-2010, 05:01 AM
|
#3
|
LQ Newbie
Registered: Dec 2010
Posts: 1
Rep:
|
Quote:
Originally Posted by hfawzy
You'll find mysql logs under /var/log.
Actually, this directory contains most of log files (X11, etc..).
|
when i check it there it sayd the file is a SYMBOLIC Link "path" but when i check it in the path mentioned the log file is not there .. 
|
|
|
12-16-2010, 06:36 AM
|
#4
|
Member
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239
Rep:
|
open the my.config file and the default log file should be there.
|
|
|
12-16-2010, 08:00 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
@shanakac: Note that the preceding comments before yours are 5 yrs old(!). Things change ....
|
|
|
12-16-2010, 10:16 PM
|
#6
|
Member
Registered: Apr 2007
Distribution: centos,rhel, solaris
Posts: 239
Rep:
|
@ topic date ..... I didn't notice that too.
|
|
|
12-16-2010, 11:22 PM
|
#7
|
LQ Newbie
Registered: Feb 2010
Posts: 14
Rep:
|
Location of mysql logs?
All log files are created in the data directory.
You can force the server to close and reopen the log files (or in some cases switch to a new log file) by flushing the logs.
Log flushing occurs when you issue a FLUSH LOGS statement or execute a
mysqladmin flush-logs, mysqladmin refresh, mysqldump --flush-logs, or mysqldump --master-data command.
Last edited by Tinkster; 12-17-2010 at 04:31 PM.
|
|
|
12-17-2010, 06:51 AM
|
#8
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,983
|
Hi,
Quote:
Originally Posted by rentalsolutions
All log files are created in the data directory.
You can force the server to close and reopen the log files (or in some cases switch to a new log file) by flushing the logs.
Log flushing occurs when you issue a FLUSH LOGS statement or execute a
mysqladmin flush-logs, mysqladmin refresh, mysqldump --flush-logs, or mysqldump --master-data command.
|
I'm asking you to remove the advertisement links in your signature.
No third part advertisement is allowed. If you wish to advertise here on LQ then contact ads@linuxquestions.org.
I appreciate your cooperation in this matter.

|
|
|
All times are GMT -5. The time now is 12:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|