Optimize MySQL tables simple
|
Author: Mattias (mattias@999tutorials.com) Categories: Mysql |
|
|
|
The tutorial: Digg this, Post to del.icio.us, Want to speed up your MySQL performance in a simple but effective way?Speed in MySQL is all about how fast the database can find the information you request. To help MySQL clean up and get all the best possibilities to gather your information, you can perform the command “Optimize” on your tables. Because you probably will add and delete tables from time to time, you want a solution that works no matter how your database looks like. For this I will give you a PHP script that finds all your tables, and then perform Optimize on every single one. A good idea can be to do this every night (or whenever your server is least accessed) with “cron” because you don’t want to delay your surfers to much. Here is the script (really simple actually): Good luck with your optimizing :-)
Digg this, Post to del.icio.us, |
