Mysql Directory taking up a lot of space

romanus

Well-Known Member
Jul 17, 2004
68
0
156
Can anyone tell me wether its safe for me to delete host-bin.001 type files and what are they? I am also wondering if it is safe to delete a .err and .pid file?

I have about 12gig of these files dating back 4 months.

Thanks for your help
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
romanus said:
Can anyone tell me wether its safe for me to delete host-bin.001 type files and what are they? I am also wondering if it is safe to delete a .err and .pid file?

I have about 12gig of these files dating back 4 months.
Yes, you can delete those files, unless you're running a master/slave replication setup.

Check your mysql variables SHOW VARIABLES for log_bin, make sure it's off. You can also disable that in /etc/my.cnf. It's not required for MySQL to run, any way.
 
Last edited: