Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning MySQL
|
BOOK: Beginning MySQL
This is the forum to discuss the Wrox book Beginning MySQL by Robert Sheldon, Geoff Moes; ISBN: 9780764579509
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2009, 08:50 PM
Registered User
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error Log Files (on Ubuntu) - Chapter 13 P. 506

I'm sitting on Ubuntu 9.04 with MySQL 5.0.75 installed.
The book states that error logging is enable by default and that the file called <host>.err is located in the data directory (on Ubuntu, that would be /var/lib/mysql) but this seems to be incorrect.
There is no such file in that directory and the only .err file that I can find on the system is a file called mysql.err located in the /var/log directory.
This file is empty and is not populated once I execute an erroneous command such as DROP USER noneexistinguser; It remains empty no matter what happens with MySQL.

So I added (like the book suggests) log-error=localhost.err which indeed created a file by that name, but it only contains when the server started and when it was shut down, and not the erroneous command. I assumed that the default behavior would be this since the example in the book has logged an attempt to remove a user that does not exists.

Furthermore, Query Logging records events such as server startup and shutdown. Since the localhost.err file I just created does exactly this, what is the point of the .err file?

Anyone care to enlighten me?

Last edited by MockY; November 13th, 2009 at 08:55 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 Error Psyclist BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 12 February 15th, 2010 07:49 PM
VB Tools.Log error, Chapter 13 Roosker BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 February 14th, 2009 02:08 PM
LINQ Error ? Chapter 13 workidoo BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 22nd, 2008 09:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.