Last active
November 2, 2020 19:00
-
-
Save grambas/aec61b74b2e76ef0749b8d2f6aa74e28 to your computer and use it in GitHub Desktop.
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