Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

contrib: myth database optimization

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


lists at forevermore

Nov 29, 2004, 9:25 PM

Post #1 of 3 (867 views)
Permalink
contrib: myth database optimization

Beirdo was chatting in #mythtv-users about how he saved a bunch of disk
space by optimizing his mysql databases. I happened to have a script
that does this kind of thing, along with repairing any necessary tables,
too.

Anyway, I added in some code from nuvexport to auto-detect the database
parameters from myth's mysql.txt, and posted it here:

http://forevermore.net/files/optimize_mythdb.pl.gz

If there isn't already something like this in contrib, it would be nice
to get this one checked in (or even better, have this kind of
functionality built into myth itself).

-Chris
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jsa at video

Nov 30, 2004, 12:32 AM

Post #2 of 3 (789 views)
Permalink
Re: contrib: myth database optimization [In reply to]

On Monday 29 November 2004 20:25, Chris Petersen wrote:
> Anyway, I added in some code from nuvexport to auto-detect the database
> parameters from myth's mysql.txt, and posted it here:

What does it do besides autodetect?
Does it fix anything? Rebuild with optimized parameters? or what?



--
______Jsa_________
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bjm at lvcm

Nov 30, 2004, 1:07 PM

Post #3 of 3 (800 views)
Permalink
Re: contrib: myth database optimization [In reply to]

Chris Petersen wrote:
> Beirdo was chatting in #mythtv-users about how he saved a bunch of disk
> space by optimizing his mysql databases. I happened to have a script
> that does this kind of thing, along with repairing any necessary tables,
> too.
>
> Anyway, I added in some code from nuvexport to auto-detect the database
> parameters from myth's mysql.txt, and posted it here:
>
> http://forevermore.net/files/optimize_mythdb.pl.gz

"mysqlcheck" "-r" and "-o" will act on all of the tables without
a script to find the table names.

> If there isn't already something like this in contrib, it would be nice
> to get this one checked in (or even better, have this kind of
> functionality built into myth itself).

The built-in function to automatically run mythfilldatabase asks
for "mythfilldatabase Path:". This could be anything but it expects
the status to be updated in the settings table as a result. You
could simply have it call a small script something like this:

#!/bin/sh
mysqlcheck -r -u mythtv -pmythtv mythconverg > /dev/null 2>&1
mythfilldatabase
mysqlcheck -o -u mythtv -pmythtv mythconverg > /dev/null 2>&1

-- bjm
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.