Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mysqld-bin: Multiple instances of great size [solved]
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
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Fri Feb 08, 2008 1:17 pm    Post subject: mysqld-bin: Multiple instances of great size [solved] Reply with quote

Hallo!

Suddenly my /var partition has no space left!

After a little research, among other things, I have found the following sizes in my mysqld-bin files:

Code:
du -csh /var/lib/mysql/mysqld-bin*
1,1G    /var/lib/mysql/mysqld-bin.000001
1,1G    /var/lib/mysql/mysqld-bin.000002
1,1G    /var/lib/mysql/mysqld-bin.000003
599M    /var/lib/mysql/mysqld-bin.000004
0       /var/lib/mysql/mysqld-bin.000005
0       /var/lib/mysql/mysqld-bin.000006
0       /var/lib/mysql/mysqld-bin.000007
0       /var/lib/mysql/mysqld-bin.000008
1,0K    /var/lib/mysql/mysqld-bin.000009
1,0K    /var/lib/mysql/mysqld-bin.index
3,6G    total


Why is that?

I only use mysql for amarok and therefore I have no experience with it. I would appreciate your hints!

*** EDIT ***

I checked my logs and they were fluded with messages stating that certain tables were corrupted.

I tried to check and correct them with
Code:
myisamchk *.MYI
myisamchk -r


However the mysqld-bin files are still there in occupying 3G!

*************

Kind regards,
orange_juice


Last edited by orange_juice on Sun Feb 10, 2008 10:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Feb 08, 2008 2:47 pm    Post subject: Reply with quote

You can have these files rotated etc... take a look at [1].

[1] http://dev.mysql.com/doc/refman/5.0/en/binary-log.html

HTH,
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Sun Feb 10, 2008 10:15 pm    Post subject: Reply with quote

Thank you for your help!

Kind regards,
orange_juice
Back to top
View user's profile Send private message
magbenji
n00b
n00b


Joined: 17 Mar 2004
Posts: 45
Location: I-duh-no, USA

PostPosted: Wed May 21, 2008 3:38 am    Post subject: Reply with quote

Hi, I had this same problem except it was to the tune of 40G! Is there a way to set mysqld to limit the size of these logs? Or do you just have to monitor them and do a RESET MASTER every once in awhile? I didn't see anything in my.cnf that jumped out at me...
Back to top
View user's profile Send private message
remix
l33t
l33t


Joined: 28 Apr 2004
Posts: 797
Location: hawaii

PostPosted: Fri Apr 23, 2010 5:18 am    Post subject: Reply with quote

comment out the log-bin line in my.cnf then restart mysql server
_________________
help the needy
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