Solved

how to purge binary logs on a 4.0.20 box

Posted on 2009-07-08
1
581 Views
Last Modified: 2012-05-07
hello,
i found the doc page
http://dev.mysql.com/doc/refman/4.1/en/purge-binary-logs.html

i tried (below) what am i missing??  

thanks
:::::

[root@millhouse root]# mysql --password mysql
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 24383 to server version: 4.0.20-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> PURGE BINARY LOGS BEFORE '2009-01-01 00:00:01';
ERROR 1064: 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 BEFORE '2009-01-01 00:00:00'' at line 1
mysql>



0
Comment
Question by:paries
1 Comment
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 24809661
Hi,

The problem is the syntax is valid for MySQL 4.1 and higher. You might like to use Reset master command instead.

Cheers,
K.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL Column not found 7 43
VARCHAR vs. CHAR 6 59
move records one table to another 14 51
Multilanguage Database Design in MySQL 5 35
Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now