[mythtv-users] database access
R. G. Newbury
newbury at mandamus.org
Fri Mar 6 21:35:23 UTC 2009
backuppc at sundquist.imapmail.org wrote:
> But though I can log in either way on the command line, I can't get
> nuvexport and other scripts calling MythTV.pm to log into the database
> to work.
>
> Note, I have found the same problem with many other scripts that try to
> log into the database, including optimize_mythdb.pl and even mythweb.
>
> These are the lines of /usr/share/perl5/MythTV.pm where all these
> scripts try to log into the database:
>
> # Connect to the database
> $self->{'dbh'} =
> DBI->connect("dbi:mysql:database=$self->{'db_name'}:host=$self->{'db_host'};port=$self->{'db_port'}",
> $self->{'db_user'},
> $self->{'db_pass'})
> or die "Cannot connect to database: $!\n\n";
>
I would make a small bet that you are missing the Perl-DBI package or
the libdbi package and it is the perl call which (silently) fails. Try
browsing through the package lists for your distro and look for
something like libdbi-dbd-mysql and/or perl-Class-DBI-mysql....
Geoff
--
Please let me know if anything I say offends you.
I may wish to offend you again in the future.
Tux says: "Be regular. Eat cron flakes."
More information about the mythtv-users
mailing list