View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 20, 2006 10:42 am 
Offline
Joined: Sun Jan 16, 2005 8:23 pm
Posts: 94
I get the following error when I try to run this:

Code:
# myth.rebuilddatabase.pl --dir /myth/tv
DBI connect('database=mythconverg:host=mythpoint','mythtv',...) failed: Can't connect to MySQL server on 'mythpoint' (111) at /usr/local/bin/myth.rebuilddatabase.pl line 128
Cannot connect to database ()


Does anyone know what is going on here? I am running R5A26.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 11:55 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Well, either MySQL isn't running or 'mythpoint' isn't your hostname...

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 12:33 pm 
Offline
Joined: Sun Jan 16, 2005 8:23 pm
Posts: 94
I tried checking both of those.

I logged in to MySQL. It is working fine.

I tried using the command-line parameters to set both "host" and "dbhost" to the IP adresses. I also tried running it with the user and pass for "root".

weird, eh...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 10:59 pm 
Offline
Joined: Wed Jan 25, 2006 9:19 pm
Posts: 10
Location: Edmonton, Canada
Red5, did you figure this out yet?

I am having the exact same problem with R5A30.2. The backend and MySQL are definitely running, the hostname is correct and resolves to 127.0.0.1, etc... I'm not sure what else to try.

_________________
mnorton.com | orangebuffalo.ca | tkc5.ca


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 5:39 pm 
Offline
Joined: Fri Feb 10, 2006 3:44 pm
Posts: 2
Location: France
hi all
to clear my database i used:
mysql> delete from videometadata; #without the *
and it worked !!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 5:56 pm 
Offline
Joined: Wed Jan 25, 2006 9:19 pm
Posts: 10
Location: Edmonton, Canada
TilTNimpuS,

I don't want to *clear* the database, I want to *rebuild* it.

_________________
mnorton.com | orangebuffalo.ca | tkc5.ca


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 11, 2006 10:48 am 
Offline
Joined: Tue Jan 10, 2006 11:19 am
Posts: 3
Location: Boston
I ran into the same problem. From the knoppmyth wiki, I ran:

myth.rebuilddatabase.pl --dbhost=localhost

http://www.knoppmythwiki.org/index.php? ... storeHowTo

This worked, and allowed me to type in the names and descriptions of all the orphans on my computer.

At the end of this process, all info on commericial cutting is lost, but you can still skip f/b in time while watching. Haven't tried burning yet.


Top
 Profile  
 
PostPosted: Thu Jun 15, 2006 5:10 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
My friend just hit the RESTORE button in Mythtv and his database reverted back a month and he thus had orphaned mpg files on his hard drive that he couldn't access.

I just tried this script on my friend's R5C7 KnoppMyth machine - same machine specs as mine.

myth.rebuilddatabase.pl --dbhost=localhost

It gives me the following feedback but does nothing:
Code:
These are the files stored in (/myth/tv) and will be checked against
your database to see if the exist.  If they do not, you will be prompted
for a title and subtitle of the entry, and a record will be created.


I looked at the script and it seems to be looking for .nuv files. The newer revisions of Mythtv record to mpg files rather than nuv files. So is this script useless now?

Does anyone have a modification of the script that works with the current KnoppMyth versions?

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Last edited by neutron68 on Sat Jun 24, 2006 10:55 am, edited 2 times in total.


Top
 Profile  
 
 Post subject: found a fix
PostPosted: Sat Jun 24, 2006 10:01 am 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
In KnoppMyth R5C7, use the following command line to call the script:
Code:
myth.rebuilddatabase.pl --dbhost=localhost --ext mpg

Then, the script will look for orphan mpg files - critical for newer Mythtv versions.

I just did this and it added a bunch of errored recordings to the database, then I was able to delete them from the harddrive.

I also found a newer version of this script on the mythtv site, but I'm not sure if it's compatible with Knoppmyth R5C7 or not:
http://cvs.mythtv.org/trac/browser/trunk/mythtv/contrib/myth.rebuilddatabase.pl?rev=10047

Enjoy!
Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 30, 2006 11:49 am 
Offline
Joined: Sun Mar 07, 2004 5:34 am
Posts: 116
Location: UK
libtime-format-perl_1.00-1_all.deb is needed.

once that is installed (doesnt have any nasty dependencies)

http://cvs.mythtv.org/trac/browser/trun ... ?rev=10047

seems to run fine on RC57, and is much improved.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 1:55 am 
Offline
Joined: Fri Dec 26, 2003 3:43 pm
Posts: 22
How do you update/install libtime-format-perl_1.00-1_all.deb

Thanks,
esurfer


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 4:50 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Search for "apt-get". Also note that you don't want to do this naively or you may end up having to reinstall the whole system. There are instructions on the wiki for making sure you're pointed to the stable repositories, and other hints floating around here to make sure you don't hose yourself doing this.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu