In the contrib directory there is a Perl script, optimize_mythdb.pl to run MYSQL utilities Repair and Optimize on each table in your MythTV database. It is recommended to run it daily from a cron job.
First make sure it is executable:
chmod 755 /usr/share/doc/mythtv-0.20/contrib/optimize_mythdb.pl
Create a shell script to run daily:
###### optimize_mythdb.sh
#!/bin/sh
OPT_MYTHDB='/usr/share/doc/mythtv-0.20/contrib/optimize_mythdb.pl'
LOG='/var/log/mythtv/optimize_mythdb.log'
echo "Started ${OPT_MYTHDB} on `date`" >> ${LOG}
${OPT_MYTHDB} >> ${LOG}
echo "Finished ${OPT_MYTHDB} on `date`" >> ${LOG}
run with your daily cron jobs
fredag den 29. juni 2007
Abonner på:
Kommentarer til indlægget (Atom)
Ingen kommentarer:
Send en kommentar