mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
23 lines
423 B
PHP
Executable File
23 lines
423 B
PHP
Executable File
<?php
|
|
|
|
require("lib/innodb/config.php");
|
|
require_once("lib/framework/db.php");
|
|
|
|
$iforce = false;
|
|
|
|
if (isset($argv[1]))
|
|
$iforce = ($argv[1] == "true");
|
|
|
|
$db = new DB;
|
|
$iret = $db->optimiseinnodb($iforce);
|
|
|
|
if (count($iret) > 0)
|
|
{
|
|
echo "Inno Optmze : Optimised ".count($iret)." tables\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Inno Optmze : Nothing required optimisation.".(!$iforce?" Try using force (innoptimise_db.php true)":"")."\n";
|
|
}
|
|
?>
|