Purging All Binary Logs In MySQL

To purge all binary logs from MySQL run the following.

purge binary logs before NOW();

Be sure that you don't need those logs first! If the logs have filled the disk then you probably need to remove them to free up space, but this is more or less an emergency measure.

To view the content of the binary logs run the following.

show binary logs;

Add new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
4 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.