Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Mysql eating my disk space with mystery log files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
techiem2
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 166
Location: The Net

PostPosted: Wed Dec 20, 2006 11:08 pm    Post subject: [Solved] Mysql eating my disk space with mystery log files Reply with quote

So I got the dreaded no space left on device error (again) on my server.
And after poking around, I found that mysql appears to be creating some sort of realtime dump of all transactions.
It's creating a set of /var/lib/mysql/techiem2-bin.000001 files where the number increments on each mysql restart apparently.
There is also a techiem2-bin.index file that just lists them all.
I stopped mysql, moved all the existing ones and the index, and started mysql again and it immediately created a new bin file and index file.

Does anyone know how to disable this strange logging mechanism?
I didn't see anything that looked relevant in the configuration.
I could just setup a cron job to erase them all every night or so, but I'd rather them not be created to begin with.

For perspective, my /var/lib/mysql dir lists at 336M, while the -bin files I moved today list at 2.3G.
And my server only has an 8G hdd...

Thanks.

Mark II


Last edited by techiem2 on Wed Dec 20, 2006 11:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
techiem2
Apprentice
Apprentice


Joined: 28 Sep 2002
Posts: 166
Location: The Net

PostPosted: Wed Dec 20, 2006 11:17 pm    Post subject: Reply with quote

I found it.
For anyone else who runs into it, there's a directive in the default my.cnf called "log-bin", which, as would be expected, tells it to generate a binary log.
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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