Просмотр поста

.
Zidan_@777@

Вот нашел в просторах инета функцию оптимизации всех таблиц в БД

function OptimizeAllTables() {
$tables = mysql_query ('SHOW TABLES'); //get all the tables
while ($table = mysql_fetch_array ($tables))
mysql_query ('OPTIMIZE TABLE ' . $table[0]); //optimize them
}