[mythtv-users] log_bin versus log-bin in the HOWTO (was Re: Disk space problem)

Michael T. Dean mtdean at thirdcontact.com
Tue Aug 4 18:47:30 UTC 2009


On 08/04/2009 02:09 PM, Jim Morton wrote:

>  Mark Garland wrote:
>
> > Hi Jim - that's good news that you've got to the bottom of your
> > space hog.
> >
> > At the risk of hijacking your thread, I had a question relating to
> > Mike's response to your question: I've checked my my.cnf, and can
> > find no string matches of "log-bin" - so does that mean I am safe
> > from my /var directory filling up?
> >
> > Mike said: "http://www.mythtv.org/docs/mythtv-HOWTO-6.html (Yes, I
> > know that's the MySQL section.  Still, read it.  No, really.  Trust
> >  me.  Fine, at least read the first sentence.)"
> >
> > The sentence he refers to reads:
> > "When you install MySQL 5.x you will also want to comment out
> > "log-bin" in your my.cnf configuration file. This option will
> > quickly fill your "/var" disk partition with many gigabytes of
> > data, unless you are doing database replication and deleting these
> > files regularly."
>
>  I believe it meant "log_bin" and not "log-bin". In my install it is
>  already commented out. I guess because I used the Mythbuntu
>  pre-rolled installation...

For the record, the HOWTO means "log-bin", not "log_bin".  The "log-bin" 
option is used to enable binary logging, so if it's set, binary logging 
is enabled--whether you specify "log_bin" or not.

However, there also exists a "log_bin" variable, which is used to 
specify the location to which binary logs are written.  If the "log_bin" 
variable is set and "log-bin" is commented (i.e. set to use defaults), 
binary logging will be enabled (as your specifying a location for the 
logs implies you want the logs).

Because of the "implicit" enabling of "log-bin", it probably makes sense 
for the HOWTO to mention both "log-bin" and "log_bin".  Now, where's my 
TODO list, again?

Thanks to Rob Smith for explaining this behavior.

Mike


More information about the mythtv-users mailing list