| Optimize MySQL Database With/Via Cron |
|
|
|
| How To - MySQL | |||
| Written by Christian Foronda | |||
| Friday, 29 October 2010 11:30 | |||
|
Create a new user with access to SELECT and INSERT that will run the cron job: mysql> GRANT SELECT, INSERT ON *.* TO 'optimizer'@'localhost' identified by 'HardPassword'; Add to cron job of whoever user: # crontab -e Option meaning: -A - Check all the databases. For busy database, it's recommended to optimize the tables once a day. # crontab -e Get an email if there is an error: # crontab -e Similar articles
|
|||
| Last Updated on Friday, 29 October 2010 11:51 |


