How do you archive a database? I have this database and it has been receiving data for the last 3 years and I would like to archive the old data WITHOUT affecting the current data (current transactions, etc.). The database is heavily used and is close to a million records and on some cases it takes a little longer for the complicated queries to complete...
What is the best way to do this? I have no experience on this. In fact this is the first time I have handled a database with this volume. Perhaps you can direct me to a good resource, etc.
I am using MySQL5 on a LAMP environment. If it requires downtime, I can sacrifice a day for this.
EDIT: If I backup the entire database, I would still have "old" records and the database would still be at the same size.
http://www.maatkit.org/doc/mk-archiver.html