cleant mysq bin logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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