Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mySQL bin-log
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Thu Feb 16, 2006 1:22 am    Post subject: mySQL bin-log Reply with quote

I'm hoping that someone here knows how to deal with this, I have read through a bunch of docs on the mysql site and posted on a mysql BB.

Does anyone know howto disable the bin logs? I have tried a number of ways to do it without success. I have a small Gentoo box running Nagios and it can fill the disk in one day.

thanks,
James
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Feb 16, 2006 2:09 am    Post subject: Reply with quote

I think if you disable the "cluster" USE flag, then the log stuff will go away.

Beside that, doing a "master reset;" in SQL will flush the log.

cheers

SteveB
Back to top
View user's profile Send private message
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Thu Feb 16, 2006 2:48 am    Post subject: Reply with quote

I don't think I emerged it with use flag cluster, am I reading this correctly


Code:
 
calpurnia libexec # equery uses mysql
[ Searching for packages matching mysql... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-db/mysql-4.1.14 ]
 U I
 - - berkdb      : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - big-tables  : Make tables contain up to 1.844E+19 rows
 - - cluster     : Add support for NDB clustering.
 - - debug       : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
 + + doc         : Adds extra documentation (API, Javadoc, etc)
 - - extraengine : Add support for alternative storage engines.
 - - geometry    : Add support for geometry data.
 - - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
 + + perl        : Adds support/bindings for the Perl language.
 - - readline    : enables support for libreadline, a GNU line-editing library that most everyone wants.
 - - selinux     : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
 + + ssl         : Adds support for Secure Socket Layer connections
 - - static      : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically
 + + tcpd        : Adds support for TCP wrappers
 - - utf8        : Use UTF8 encoding instead of LATIN1.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Feb 16, 2006 12:03 pm    Post subject: Reply with quote

Okay. Then try to limit the log size. Read this:
http://dev.mysql.com/doc/refman/5.0/en/binary-log.html


cheers

SteveB
Back to top
View user's profile Send private message
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Thu Feb 16, 2006 12:05 pm    Post subject: Reply with quote

:)
I did limit the log size, and now I have, well at last count 26 logs. Probably a lot more by this morning. I'm surprised that no one at the mySQL site didn't reply.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Feb 16, 2006 6:05 pm    Post subject: Reply with quote

jmarcus wrote:
:)
I did limit the log size, and now I have, well at last count 26 logs. Probably a lot more by this morning. I'm surprised that no one at the mySQL site didn't reply.


<joke>They are not runing Gentoo Linux! With Gentoo Linux they would have done their job faster and be able to respond. :)</joke>

cheers

SteveB
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Feb 16, 2006 6:40 pm    Post subject: Reply with quote

Found this in my.cnf:

Code:
SET SQL_LOG_BIN=0

_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Feb 16, 2006 8:55 pm    Post subject: Reply with quote

tomk wrote:
Found this in my.cnf:

Code:
SET SQL_LOG_BIN=0


This is only for the user's connection. SQL_LOG_BIN is a session varable and only valiable if the user has super privileges. Otherwise it is completly ignored.

cheers

SteveB
Back to top
View user's profile Send private message
fikiz
Apprentice
Apprentice


Joined: 07 Mar 2005
Posts: 282
Location: Italy

PostPosted: Fri Feb 17, 2006 10:12 am    Post subject: Reply with quote

remove the 'bin-log' or 'bin_log' line from my.cnf and restart mysql server.

ciao!
Back to top
View user's profile Send private message
Gentoo Server
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 279

PostPosted: Mon Jul 03, 2006 11:08 am    Post subject: Reply with quote

#log-bin



disable log-bin

then after restart you can delete the binary logs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum