|
#1
| ||||
| ||||
| mysql> optimize table *.database; ?? I've got a cron backup script that runs locally and connects to my various databases remotely and dumps them. What I'd ideally like to be able to do to them before dump is optimize the whole lot. However, I can't find any command that will let me batch optimize all my tables. I'm not sure how to use nesting in MySQL to do something like, say, optimize table 'show tables'; and in fact I think that's impossible anyway... Ideas?
__________________ michaelsanford.com Blog Twitter Tumblr LinkedIn iMac Aluminum 24" | MacOS X 10.5-current | 3.06 GHz Intel Core Duo | 4 GB RAM | 1 TB HDD iBook G4 1.42 GHz | MacOS X 10.5-current | 1 GB RAM, 100 GB HDD AMD Athlon64 3500+ | Slackware 12 (2.6.21.5-smp) | 2 GB RAM, 2120 GB RAID 1, 2500 GB RAID 0 |
![]() |
| Thread Tools | |
|
|