# Local is filling up the hard disk in my MAC

**URL:** <https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469>\
**Category:** Support\
**Tags:** mac-high-sierra\
**Created:** [August 31, 2021, 11:45am UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469 "2021-08-31T11:45:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cafelog](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/cafelog/32/14061_2.png) [@Cafelog](https://community.localwp.com/u/Cafelog)\
**Post date:** [August 31, 2021, 11:45am UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/1 "2021-08-31T11:45:48Z")

</div>

Hello, I just have moved to Local 6.11. Since them, it is creating large bin.log files on my HD (1,08GM).

I have tried to disable the binlog by adding skip-log-bin to conf/mysql/my.cnf file as suggested here:

> [@Hard disk is filling up rapidly when Local is running](http://community.localwp.com/t/hard-disk-is-filling-up-rapidly-when-local-is-running/14930/4):
>
> Hi all, MySQL has a default binlog size of 1GB. If you wish to reduce this, you can adjust it using the [max\_binlog\_size](https://dev.mysql.com/doc/refman/5.7/en/replication-options-binary-log.html#sysvar_max_binlog_size) config variable. Here’s how you can reduce it to 256MB: Navigate to your site’s conf/mysql/my.cnf.hbs file Under [mysqld] add max\_binlog\_size=256M and save the file. Restart your Local site

But Local removes this file and creates a new one every time I restart a site, so this solution is not working for me.

My Mac is running under macOS High Sierra 10.13.6

Attached is the local log in case it would help.  
[local-lightning.log](https://community.localwp.com/uploads/short-url/neWk1EGDPN7Ix2xJvCtyb5bCH47.log) (487.3 KB)

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [August 31, 2021, 3:22pm UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/2 "2021-08-31T15:22:41Z")

</div>

Hey @Cafelog , Welcome to the Local Community Forums!

Local does overwrite the configuration file everytime the site is restarted.

> [@Cafelog](#):
>
> I have tried to disable the binlog by adding skip-log-bin to conf/mysql/my.cnf file

Just to clarify, the file you want to edit is the `my.cnf.hbs` file and not the regular `my.cnf` file associated with the site. Here’s a screenshot to visualize:

 ![Image 2021-08-31 at 8.19.22 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/b/b3e31fda263f94fa6a87844a4d257999e665bf1e.jpeg)

Can you verify that the setting is being added to that `.hbs` file?

---

<div class="post-metadata">

**Author:** ![Cafelog](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/cafelog/32/14061_2.png) [@Cafelog](https://community.localwp.com/u/Cafelog)\
**Post date:** [September 1, 2021, 9:54am UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/3 "2021-09-01T09:54:48Z")

</div>

Hi Ben, thanks for your support and sorry for the late reply. We are in different time zones 😀  
Indeed, I was editing the wrong file. Since I could not find the .hbs file I assumed that it had changed in the latest version of local.  
Thanks to your screenshoot I have found and edited the right one. I have adding “skip-log-bin” and it seems that it is no longer creating the large files.  
I understand that in the future I have to edit this file for each website that I have in local.  
Again thank you so much for your support.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 1, 2021, 3:09pm UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/4 "2021-09-01T15:09:37Z")

</div>

Nice! I’m glad you figured it out!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [September 3, 2021, 3:10am UTC](https://community.localwp.com/t/local-is-filling-up-the-hard-disk-in-my-mac/27469/5 "2021-09-03T03:10:34Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
