Go to the documentation of this file.
3 # Connects to the mythtv database and repairs/optimizes the tables that it
4 # finds. Suggested use is to cron it to run once per day.
17 # Connect to mythbackend
20 # Connect to the database
23 # Repair and optimize each table
26 print "Skipped: $table\n";
29 if (
$dbh->do(
"OPTIMIZE TABLE $table")) {
30 print "Repaired/Optimized: $table\n";
32 if (
$dbh->do(
"ANALYZE TABLE $table")) {
33 print "Analyzed: $table\n";