I want to delete binary log files

following are my binary log files



i want to delete binary2.000002

mysql> PURGE BINARY LOGS TO 'binary2.000002';

It shows me:

-bash: PURGE: command not found

Please someone help me.


bash only handles Unix shell commands, no MySQL's internal commands.

This PURGE command is a command to MySQL. It needs to be issued in the "mysql" commandline tool. Or some other way to MySQL commands -- such as phpmyadmin, MySQL Workbench, PDO, etc.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.