How to optimize MySQL automatically in CentOS Linux | ||
| ||
| I am using CentOS Linux for service purpose. Main reason to use CentOS is cheaper hosting for private purpose. Actually MySQL requires periodical optimization process in my experiences, and I use /etc/cron.hourly usually for those kind of bath processing. I made 'koptimize' file with permission 0755.
Please type as below with database ID, and Password can perform optimization. It may require administrator permission or something similar with that.
After storing above file, you need to change file permission for automatic execution as below. Eventually koptimize file will be executed hourly. | ||
| | ||
| |