flush binary logs mysql code example Example: mysql purge binary logs # Enter mysql as root with mysql -u root PURGE BINARY LOGS BEFORE NOW();