LinHES Forums
http://forums.linhes.org/

Broken nuvexport
http://forums.linhes.org/viewtopic.php?f=5&t=3126
Page 1 of 1

Author:  Lentilboy [ Tue Dec 28, 2004 12:32 pm ]
Post subject:  Broken nuvexport

I've recently installed the newest version of nuvexport from the author's website, however I keep getting the following error when attempting to run via SSH session:

DBI connect('database=mythconverg:host=localhost','mythtv',...) failed: Access denied for user: 'mythtv@localhost' (Using password: YES) at /usr/local/share/nuvexport/mythtv/db.pm line 77

I was wondering if anyone else had experienced this.

v/r

Lentilboy

Author:  Greg Frost [ Fri Dec 31, 2004 8:41 pm ]
Post subject: 

Same problem here.

Author:  beamland [ Sat Jan 01, 2005 2:17 am ]
Post subject: 

Same problem here as well... however, managed to get it running by modifying /usr/local/share/nuvexport/mythtv/db.pm:

Search for a line beginning with (around line 33 or 34 I think):
Code:
     my @mysql = ("/usr/local/share/mythtv/mysql.txt",
                  "/usr/share/mythtv/mysql.txt",
                  ...
                 );

Make sure that only the line with "/usr/share/mythtv/mysql.txt" is taken into account. In my db.pm it looks like this now:

Code:
     my @mysql = (
#    my @mysql = ("/usr/local/share/mythtv/mysql.txt",
                  "/usr/share/mythtv/mysql.txt",
#                 "/etc/mythtv/mysql.txt",
#                 "/usr/local/etc/mythtv/mysql.txt",
#                 "$ENV{HOME}/.mythtv/mysql.txt",
#                 "mysql.txt"
                 );

I think the problem is because the script just tries to find the first mysql.txt file to extract mysql user and password out of it. The first is found at /usr/local/share/mythtv/mysql.txt but unfortunately it contains the wrong mysql user and password.

You could of course also do a
Code:
cp /usr/share/mythtv/mysql.txt /usr/local/share/mythtv/mysql.txt

to overwrite the "wrong" mysql.txt file with the correct one. Didn't try that, but should work as well.

Author:  Greg Frost [ Sat Jan 01, 2005 9:13 pm ]
Post subject: 

Thanks for the reply beamland.

I had the following instances of mysql.txt on my system (the third one is there because I rebuild mythtv to enable DVB). The first two were different, the second the same as the third.

/etc/mythtv/mysql.txt
/usr/share/mythtv/mysql.txt
/usr/src/r4v5_src/mythtv-0.16/src/mythtv-0.16/programs/mythfrontend/mysql.txt

I tried copying both versions to /usr/local/share/mythtv/mysql.txt and each time I still got the same error. Both times, I made the file permissions 777 to make sure it wasn't a permissions issue. Making the same changes that you made to
/usr/local/share/nuvexport/mythtv/db.pm did the trick though.

Thanks again.

Author:  rgatewood [ Mon Jan 17, 2005 11:59 am ]
Post subject:  nuvexport fix

:D Thanks! I was beginning to think I would never get this working!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/