Gentoo Archives: gentoo-amd64

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] mythfrontend on AMD64 - will it work with qt-4? (cannot connect to database)
Date: Tue, 15 May 2007 14:26:31
Message-Id: 5bdc1c8b0705150723u59ae5933h3a676bd814104d7b@mail.gmail.com
In Reply to: Re: [gentoo-amd64] mythfrontend on AMD64 - will it work with qt-4? (cannot connect to database) by Brett Johnson
1 On 5/15/07, Brett Johnson <brett@××××.com> wrote:
2 > On Mon, May 14, 2007 at 07:59:52PM -0700, Mark Knecht wrote:
3 > > Hi,
4 > > I'm in the early stages of a complete MythTV update across my
5 > > network. I have the backend nearly working in an IA32 machine. It runs
6 > > fine but isn't getting all the channels correctly yet. In parallel
7 > > with that effort I'm trying to get the frontend working again on my
8 > > AMD64 machine.
9 > >
10 > > However when I try to start the frontend it complains like this:
11 > >
12 > > mark@lightning ~ $ mythfrontend --geometry 800x600
13 > > 2007-05-14 19:56:19.577 Using runtime prefix = /usr
14 > > 2007-05-14 19:56:19.585 DPMS is active.
15 > > QSqlDatabase: QMYSQL3 driver not loaded
16 > > QSqlDatabase: available drivers:
17 > > 2007-05-14 19:56:19.595 New DB connection, total: 1
18 > > 2007-05-14 19:56:19.595 Unable to connect to database!
19 > > 2007-05-14 19:56:19.596 No error type from QSqlError? Strange...
20 > > QSqlQuery::exec: database not open
21 > > QSqlQuery::exec: database not open
22 > > 2007-05-14 19:56:19.646 DB Error (KickDatabase):
23 > > Query was:
24 > > SELECT NULL;
25 > > No error type from QSqlError? Strange...
26 > >
27 > >
28 > First, I believe MythTV still required QT3. The QT package is slotted,
29 > so you should be able to have both 3 and 4 installed. If you upgraded
30 > MySQL on the AMD64 box, you may want to rebuild QT3 with something like
31 > emerge -av =dev-libs/qt3*
32 >
33 > If that doesn't fix it, it sounds like it could be a password encryption
34 > problem. I had a similar problem when I tried using a RHEL box as a
35 > front end. The RHEL distribution only supported MySQL 4.0.x and my back
36 > end DB is MySQL 5.x. I could connect fine from the command line, but the
37 > front end could not. After a bit of research I determined it was a
38 > password encryption problem. I decided the easiest solution for me was to
39 > create a second account for the mythconverg DB and encrypt the password
40 > using the old_password function. You can also upgrade the client to 5.x.
41 > If it's already at 5.x you may need to re-encrypt the password for the
42 > account.
43 >
44 > You may want to look at
45 > http://dev.mysql.com/doc/refman/5.0/en/old-client.html
46 > and try some of the suggestions.
47 >
48 > Hope this helps.
49 >
50 > Brett
51 > --
52 > gentoo-amd64@g.o mailing list
53 >
54 >
55
56 Hi Brett.
57 Thanks for responding.
58
59 I have both qt3 and qt4 installed:
60
61 mark@lightning ~ $ eix -I x11-libs/qt
62 [I] x11-libs/qt
63 Available versions:
64 (3) 3.3.4-r8 3.3.8-r2
65 (4) 4.2.3-r1 ~*4.3.0_beta1 ~4.3.0_rc1
66 {accessibility cups dbus debug doc examples firebird gif glib
67 immqt immqt-bc input_devices_wacom ipv6 jpeg mng mysql nas nis odbc
68 opengl pch png postgres qt3support sqlite sqlite3 ssl tiff xinerama
69 zlib}
70 Installed versions: 3.3.8-r2(3)(09:05:22 PM 04/18/2007)(cups
71 -debug -doc -examples -firebird gif -immqt -immqt-bc ipv6 mysql -nas
72 -nis -odbc opengl -postgres -sqlite -xinerama)
73 4.2.3-r1(4)(07:42:10 PM
74 05/14/2007)(-accessibility cups dbus -debug -doc -examples -firebird
75 gif -glib -input_devices_wacom jpeg -mng mysql -nas -nis -odbc opengl
76 -pch png -postgres qt3support -sqlite -sqlite3 -xinerama zlib)
77 Homepage: http://www.trolltech.com/
78 Description: The Qt toolkit is a comprehensive C++
79 application development framework.
80
81
82 As far as I can tell Myth and most everything else does depend on qt3:
83
84 mark@lightning ~ $ equery depends =x11-libs/qt-3.3.8-r2
85 [ Searching for packages depending on =x11-libs/qt-3.3.8-r2... ]
86 app-cdr/k3b-1.0.1 (=x11-libs/qt-3.3*)
87 app-crypt/qca-1.0-r2 (=x11-libs/qt-3.3*)
88 app-text/poppler-bindings-0.5.4 (qt3? =x11-libs/qt-3*)
89 dev-libs/dbus-qt3-old-0.70 (=x11-libs/qt-3*)
90 kde-base/kdebase-3.5.5-r4 (=x11-libs/qt-3.3*)
91 kde-base/kdelibs-3.5.5-r10 (=x11-libs/qt-3.3.8-r2)
92 kde-misc/filelight-1.0_rc2 (=x11-libs/qt-3.3*)
93 media-sound/qjackctl-0.2.22 (=x11-libs/qt-3*)
94 media-tv/mythtv-0.20.1_p13344 (=x11-libs/qt-3.3*)
95 x11-themes/mythtv-themes-0.20.1 (=x11-libs/qt-3.3*)
96 mark@lightning ~ $ equery depends =x11-libs/qt-4.2.3-r1
97 [ Searching for packages depending on =x11-libs/qt-4.2.3-r1... ]
98 app-text/poppler-bindings-0.5.4 (qt4? =x11-libs/qt-4*)
99 mark@lightning ~ $
100
101 I did upgrade mysql to version 5 so I'll try rebuilding qt3 using
102 this command:
103
104 emerge -av =x11-libs/qt-3*
105
106 If the info above suggests other ideas please post back when you
107 get a chance.
108
109 thanks,
110 Mark
111 --
112 gentoo-amd64@g.o mailing list

Replies