How to repair the table while having small space on Hard Drive

286 Views Asked by At

I have a large datatable of around 60GB. This table had alot of unused rows and after deleting about 6GB of them I have noticed that table size stayed the same (60GB) and their was an "optimize" message within phpmyadmin. So i clicked to optimize, but i didnt have enough space on the hd. So i had to halt the process and restarted mysql.

After i logged back in I happen to have a problem with my table, when I try to access it i get message similar to: "Table 'table_name' is marked as crashed and last (automatic?) repair failed"

Right now I have 3.5GB of space to use on the hard drive. What would be the best way forward to repair, fix and shirt this particular table?

At the moment my plan is to download full database from the server onto a local hard drive; after which I will delete unused data (it will most likely be 59.99GB of it) and then to either copy or re-import data back into live database.

Thanks.

1

There are 1 best solutions below

7
Fran Cerezo On BEST ANSWER

May you free space exporting only another heavy table and truncate this? You get more space and after repair affected table you only must import a table, not full database.