Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

mythfrontend database connection errors

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


shreyas at umd

Mar 5, 2010, 10:04 AM

Post #1 of 3 (773 views)
Permalink
mythfrontend database connection errors

Hi,

After upgrading to mythtv 0.22, mythfrontend has trouble connecting to the
database. The logs show that the errors always start occurring after the
third DB connection is setup. mythbackend has no troubles connecting to the
database, and I've checked /usr/share/mysql/charsets/Index.xml file and
latin1 is listed as a valid character set. Any pointers as to how to fix
this problem?

Here is the relevant part of the mythfrontend logs...

2010-02-27 17:00:08.441 TV: Changing from None to Watching
WatchingPreRecorded2010-02-27 17:00:08.441 New DB connection, total: 3
^GCharacter set 'latin1' is not a compiled character set and is not
specified in
the '/usr/share/mysql/charsets/Index.xml' file
2010-02-27 17:00:08.442 Realtime priority would require SUID as
root.2010-02-27 17:00:08.442 Unable to connect to database!
2010-02-27 17:00:08.442 Driver error was [1/2019]:QMYSQL: Unable to connect
Database error was:
Can't initialize character set latin1 (path: /usr/share/mysql/charsets/)

QSqlQuery::exec: database not open
^GCharacter set 'latin1' is not a compiled character set and is not
specified in
the '/usr/share/mysql/charsets/Index.xml' file
QSqlQuery::exec: database not open
2010-02-27 17:00:08.493 No error type from QSqlError? Strange...2010-02-27
17:00:08.543 Database not open while trying to load setting: UseVideo
Timebase
2010-02-27 17:00:08.546 Video timing method: USleep with busy wait
^GCharacter set 'latin1' is not a compiled character set and is not
specified in the '/usr/share/mysql/charsets/Index.xml' file
2010-02-27 17:00:11.547 Unable to connect to database!
2010-02-27 17:00:11.547 Driver error was [1/2019]:
QMYSQL: Unable to connect
Database error was:
Can't initialize character set latin1 (path: /usr/share/mysql/charsets/)

QSqlQuery::exec: database not open
^GCharacter set 'latin1' is not a compiled character set and is not
specified in the '/usr/share/mysql/charsets/Index.xml' file
QSqlQuery::exec: database not open
2010-02-27 17:00:11.598 No error type from QSqlError? Strange...


mtdean at thirdcontact

Mar 5, 2010, 4:18 PM

Post #2 of 3 (708 views)
Permalink
Re: mythfrontend database connection errors [In reply to]

On 03/05/2010 01:04 PM, Shreyas A wrote:
> After upgrading to mythtv 0.22, mythfrontend has trouble connecting to
> the database. The logs show that the errors always start occurring
> after the third DB connection is setup. mythbackend has no troubles
> connecting to the database, and I've checked
> /usr/share/mysql/charsets/Index.xml file and latin1 is listed as a
> valid character set. Any pointers as to how to fix this problem?
>
> Here is the relevant part of the mythfrontend logs...
>
> 2010-02-27 17:00:08.441 TV: Changing from None to Watching
> WatchingPreRecorded2010-02-27 17:00:08.441 New DB connection, total: 3
> ^GCharacter set 'latin1' is not a compiled character set and is not
> specified in
> the '/usr/share/mysql/charsets/Index.xml' file
> 2010-02-27 17:00:08.442 Realtime priority would require SUID as
> root.2010-02-27 17:00:08.442 Unable to connect to database!
> 2010-02-27 17:00:08.442 Driver error was [1/2019]:QMYSQL: Unable to
> connect
> Database error was:
> Can't initialize character set latin1 (path: /usr/share/mysql/charsets/)
>
> QSqlQuery::exec: database not open
> ^GCharacter set 'latin1' is not a compiled character set and is not
> specified in
> the '/usr/share/mysql/charsets/Index.xml' file
> QSqlQuery::exec: database not open
> 2010-02-27 17:00:08.493 No error type from QSqlError?
> Strange...2010-02-27 17:00:08.543 Database not open while trying to
> load setting: UseVideo
> Timebase
> 2010-02-27 17:00:08.546 Video timing method: USleep with busy wait
> ^GCharacter set 'latin1' is not a compiled character set and is not
> specified in the '/usr/share/mysql/charsets/Index.xml' file
> 2010-02-27 17:00:11.547 Unable to connect to database!
> 2010-02-27 17:00:11.547 Driver error was [1/2019]:
> QMYSQL: Unable to connect
> Database error was:
> Can't initialize character set latin1 (path: /usr/share/mysql/charsets/)
>
> QSqlQuery::exec: database not open
> ^GCharacter set 'latin1' is not a compiled character set and is not
> specified in the '/usr/share/mysql/charsets/Index.xml' file
> QSqlQuery::exec: database not open
> 2010-02-27 17:00:11.598 No error type from QSqlError? Strange...

That's definitely a MySQL problem. Either you have a broken MySQL
install or you need to upgrade because
http://bugs.mysql.com/bug.php?id=45058 is actually hitting you. Upgrade
to MySQL to 5.1.43+, 5.5.1+, or 6.0.14+. Or, based on comments in that
bug, maybe you're actually using a version with the first patch in it
but without the second patch (which would explain why you're the
first/only person to have seen this issue) and you need to either
downgrade MySQL (to the versions before the aforementioned) or upgrade
to a version that contains the 2nd patch (which seems to fix problems
caused by the 1st patch).

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


shreyas at umd

Mar 6, 2010, 8:39 AM

Post #3 of 3 (686 views)
Permalink
Re: mythfrontend database connection errors [In reply to]

Hi Michael,

I had come across http://bugs.mysql.com/bug.php?id=45058, but thought it
didn't apply to me because I was using mysql 5.1.44-2 (from debian sid
distribution). However, it seems that it had that patch problem, because
5.1.44-3 changelog says:

mysql-dfsg-5.1 (5.1.44-3) unstable; urgency=low

* Add patch that reinstates the reloading of character set data when a
mysql_library_init() is done after a mysql_library_end().
(closes: #569549, #569595)

-- Norbert Tretkowski <nobse [at] debian> Mon, 01 Mar 2010 18:22:35 +0100

So I have upgraded to this version and am going to give this a try for a
couple of days.

Thank you for your assistance.

Shreyas.

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.