Skip to content

Instantly share code, notes, and snippets.

@skounis
Last active February 15, 2022 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skounis/8627354632bd8e8b35ba0a4565e28509 to your computer and use it in GitHub Desktop.
Save skounis/8627354632bd8e8b35ba0a4565e28509 to your computer and use it in GitHub Desktop.
Purge MySQL Binary logs

To show binary logs

mysql> SHOW BINARY LOGS;
mysql> PURGE BINARY LOGS BEFORE '2021-01-01 00:00:00';

Disable

sudo joe /etc/mysql/mysql.conf.d/mysqld.cnf
[mysqld]
skip-log-bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment