View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Sep 16, 2006 3:36 pm 
Offline
Joined: Wed Apr 19, 2006 7:58 pm
Posts: 33
I did a stupid thing and restored an old backup and now I am missing about 2 months of recorded shows in Myth. I found myth.rebuilddatabase.pl and it looks like it will do what I want. I tried this:

myth.rebuilddatabase.pl --user mythtv --pass mythtv --dir /mnt/video/TV --host localhost

and I get the following error:
DBI connect('database=mythconverg;host=tv','mythtv'....) failed; Can't connect MySQL server on 'tv' (111)at /usr/local/bin/myth.rebuilddatabase.pl line 120 Cannot connect to database ()

Line 120 in myth.rebuilddatabase.pl is:
'pass='=>\#pass, (or some such, its hard to read on the tv screen;)

Any ideas?

Thanks for the help.

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 17, 2006 6:07 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
I suspect the problem is something to do with your machine's network setup, because it is getting the name 'tv' when you specify 'localhost'.

What happens if you do:
Code:
myth.rebuilddatabase.pl --try_defaults
(maybe with --dir /mnt/video/TV if that is needed due to reconfig)

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 17, 2006 7:20 am 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
nigelpearson wrote:
I suspect the problem is something to do with your machine's network setup, because it is getting the name 'tv' when you specify 'localhost'.

What happens if you do:
Code:
myth.rebuilddatabase.pl --try_defaults
(maybe with --dir /mnt/video/TV if that is needed due to reconfig)


I tried using that script after upgrading to r5d1, and it failed totally because it was looking only for .nuv files (line #193). I attempted to quickly modify it (clearly it is no longer good for recent upgrades).

I'm going to work on a newer version that uses bash, sed, awk and mysql client. I'll post it when it's done.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 17, 2006 9:20 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
There is (or used to be) an option to tell it what file types to look for...

Searching for the name of the script should turn up a thread with the details. There have been 2-3 recently.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 1:38 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
manicmike wrote:
I tried using that script after upgrading to r5d1, and it failed totally because it was looking only for .nuv files


Yes, KnoppMyth currently has an old version. For now, grab the latest from here:

http://cvs.mythtv.org/trac/browser/bran ... format=raw

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 9:37 am 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
nigelpearson wrote:
manicmike wrote:
I tried using that script after upgrading to r5d1, and it failed totally because it was looking only for .nuv files


Yes, KnoppMyth currently has an old version. For now, grab the latest from here:

http://cvs.mythtv.org/trac/browser/bran ... format=raw


Darn. Someone beat me to it. I fixed it tonight.

Incidentally, the nuv format not only had the different extension, but the files also had start *and end* times in the file name. This also tripped up the perl script, since it extracted this data from the name then stuck it into the database.

Nice little script :-) Saves bucket loads of time. I previously copied all the tv files into the video directory then rename them. Very tedious indeed!

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu