Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cleant mysq bin logs
docker exec -it -u root DB_CONTAINER_NAME /bin/bash
mysql -u root -p
PURGE BINARY LOGS BEFORE NOW(); # OR RESET MASTER;
# check option
SELECT * FROM performance_schema.global_variables WHERE VARIABLE_NAME IN ('log_bin');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment