PDA

View Full Version : Problems with running myth.rebuilddatabase.pl


dinger1986
May 8th, 2008, 11:56 AM
Hi there,

I am having a problem running myth.rebuilddatabase.pl on a newly installed mythbuntu 8.04 box.

When I run the command:
sudo ./myth.rebuilddatabase.pl --ext avi

I get the error:
DBI connect('database=mythconverg:host=media','mythtv' ,...) failed: Can't connect to MySQL server on 'media' (111) at ./myth.rebuilddatabase.pl line 191
Cannot connect to database ()


I have checked the username and the password(from /usr/share/mythtv/mysql.txt) and run:
mysqlcheck --auto-repair -A -u mythtv -pmypassword.

Is anyone else having problems with it?

I have looked through forums for the last 2 days and cant find anything.

Regards,
Daniel

dinger1986
May 9th, 2008, 08:41 AM
Doesnt matter got it to work.

Changed the line:
my $host = hostname;

to
my $host = "localhost";

Just incase anyone else ever has the same problem.

Regards,
Daniel