Purge old binlogs in mysql 4
سؤال
I need to purge binary logs from mysql version 4. I have checked the manual found that the syntax is like an advanced versions:
PURGE MASTER LOGS TO mysql-bin.xxx
However, when i use this command, i get the following error:
ERROR 1064 (00000): You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'BINARY LOGS TO 'mysql-bin.xxx'' at line 1
Please avdise.
المحلول
The error message says right syntax to use near 'BINARY LOGS TO 'mysql-bin.xxx'
but you mentioned use of PURGE MASTER LOGS TO ...
?
Try using PURGE MASTER LOGS TO mysql-bin.xxx
instead of using 'PURGE BINARY ....' as the latter was added to MySQL v4.1.1 and if your version is any lower, PURGE BINARY ...
won't work.
لا تنتمي إلى dba.stackexchange