Skip to content

Instantly share code, notes, and snippets.

@WillSquire
Last active August 2, 2017 16:27
Show Gist options
  • Select an option

  • Save WillSquire/f1cd084e0ee7e151826e0dc58ee9aa3e to your computer and use it in GitHub Desktop.

Select an option

Save WillSquire/f1cd084e0ee7e151826e0dc58ee9aa3e to your computer and use it in GitHub Desktop.
Remove binary logs

Locate and edit my.cnf files on the system, commonly located at /etc/mysql/my.cnf on Ubuntu.

Comment out (using #) any lines that begin with log-bin and expire_logs_days in the my.cnf file and save to disable the binary logs.

Restart the MySQL/MariaDB or equivelent service. For example:

sudo service mariadb restart

Previously created binary logs will not yet be removed. To remove any previously created binary logs, see here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment