pasta514
November 4th, 2007, 12:50 AM
Today I installed Edubuntu 7.10 i386 followed by mythbuntu 7.10.
I've never run mythtv before, so not exactly sure what I'm looking for.
This system I'm setting up as a backend, but while I'm setting it up I want to debug it as the frontend also, I do not have easy access to my true front-end machine yet.
When I run frontend it takes me to the 'database configuration' screen showing the error 'myth cannot connect to the database.
Questions:
1) what should the root mysql password be? blank, same as a login or root password, or something entirely independent?
2) how about the user password for user mythtv?
Here are some of the output I get trying to debug this:
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ sudo ./mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ ps -p 7416
PID TTY TIME CMD
7416 pts/3 00:00:00 mysqld
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:~$ ps -p `cat /var/run/mythtv/mythbackend.pid`
PID TTY TIME CMD
:confused:
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.:confused:
.
.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend start
mythbackend already running, use restart instead.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.
.
.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.
.
.
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:~$ more /var/log/mythtv/mythbackend.log
2007-11-03 19:15:21.370 Using runtime prefix = /usr
2007-11-03 19:15:21.395 New DB connection, total: 1
2007-11-03 19:15:21.416 Unable to connect to database!
2007-11-03 19:15:21.421 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES):confused:
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:15:21.485 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:15:21.546 Failed to init MythContext, exiting.
2007-11-03 19:25:36.360 Using runtime prefix = /usr
2007-11-03 19:25:36.392 New DB connection, total: 1
2007-11-03 19:25:36.401 Unable to connect to database!
2007-11-03 19:25:36.401 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:25:36.454 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:25:36.505 Failed to init MythContext, exiting.
2007-11-03 19:30:36.239 Using runtime prefix = /usr
2007-11-03 19:30:36.573 New DB connection, total: 1
2007-11-03 19:30:36.601 Unable to connect to database!
2007-11-03 19:30:36.652 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:30:36.724 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:30:36.781 Failed to init MythContext, exiting.
2007-11-03 19:33:23.125 Using runtime prefix = /usr
2007-11-03 19:33:23.161 New DB connection, total: 1
2007-11-03 19:33:23.170 Unable to connect to database!
2007-11-03 19:33:23.171 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:33:23.223 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:33:23.274 Failed to init MythContext, exiting.
2007-11-03 19:50:59.297 Using runtime prefix = /usr
2007-11-03 19:50:59.625 New DB connection, total: 1
2007-11-03 19:50:59.636 Unable to connect to database!
2007-11-03 19:50:59.637 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:50:59.714 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:50:59.780 Failed to init MythContext, exiting.
2007-11-03 20:12:24.645 Using runtime prefix = /usr
2007-11-03 20:12:24.691 New DB connection, total: 1
2007-11-03 20:12:24.711 Unable to connect to database!
2007-11-03 20:12:24.712 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:12:24.765 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:12:24.816 Failed to init MythContext, exiting.
2007-11-03 20:13:57.060 Using runtime prefix = /usr
2007-11-03 20:13:57.096 New DB connection, total: 1
2007-11-03 20:13:57.105 Unable to connect to database!
2007-11-03 20:13:57.119 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:13:57.175 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:13:57.226 Failed to init MythContext, exiting.
2007-11-03 20:28:55.123 Using runtime prefix = /usr
2007-11-03 20:28:55.147 New DB connection, total: 1
2007-11-03 20:28:55.156 Unable to connect to database!
2007-11-03 20:28:55.157 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:28:55.210 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:28:55.261 Failed to init MythContext, exiting.
2007-11-03 20:38:48.772 Using runtime prefix = /usr
2007-11-03 20:38:48.806 New DB connection, total: 1
2007-11-03 20:38:48.815 Unable to connect to database!
2007-11-03 20:38:48.815 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:38:48.868 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:38:48.919 Failed to init MythContext, exiting.
Thanks!
I've never run mythtv before, so not exactly sure what I'm looking for.
This system I'm setting up as a backend, but while I'm setting it up I want to debug it as the frontend also, I do not have easy access to my true front-end machine yet.
When I run frontend it takes me to the 'database configuration' screen showing the error 'myth cannot connect to the database.
Questions:
1) what should the root mysql password be? blank, same as a login or root password, or something entirely independent?
2) how about the user password for user mythtv?
Here are some of the output I get trying to debug this:
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ sudo ./mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ ps -p 7416
PID TTY TIME CMD
7416 pts/3 00:00:00 mysqld
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:~$ ps -p `cat /var/run/mythtv/mythbackend.pid`
PID TTY TIME CMD
:confused:
-------------------------------------------------------------------------------------------
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.:confused:
.
.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend start
mythbackend already running, use restart instead.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.
.
.
papa@sipper:/etc/init.d$ sudo ./mythtv-backend restart
Restarting MythTV server: mythbackend No /usr/bin/mythbackend found running; none killed.
.
.
papa@sipper:/etc/init.d$
-------------------------------------------------------------------------------------------
papa@sipper:~$ more /var/log/mythtv/mythbackend.log
2007-11-03 19:15:21.370 Using runtime prefix = /usr
2007-11-03 19:15:21.395 New DB connection, total: 1
2007-11-03 19:15:21.416 Unable to connect to database!
2007-11-03 19:15:21.421 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES):confused:
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:15:21.485 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:15:21.546 Failed to init MythContext, exiting.
2007-11-03 19:25:36.360 Using runtime prefix = /usr
2007-11-03 19:25:36.392 New DB connection, total: 1
2007-11-03 19:25:36.401 Unable to connect to database!
2007-11-03 19:25:36.401 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:25:36.454 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:25:36.505 Failed to init MythContext, exiting.
2007-11-03 19:30:36.239 Using runtime prefix = /usr
2007-11-03 19:30:36.573 New DB connection, total: 1
2007-11-03 19:30:36.601 Unable to connect to database!
2007-11-03 19:30:36.652 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:30:36.724 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:30:36.781 Failed to init MythContext, exiting.
2007-11-03 19:33:23.125 Using runtime prefix = /usr
2007-11-03 19:33:23.161 New DB connection, total: 1
2007-11-03 19:33:23.170 Unable to connect to database!
2007-11-03 19:33:23.171 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:33:23.223 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:33:23.274 Failed to init MythContext, exiting.
2007-11-03 19:50:59.297 Using runtime prefix = /usr
2007-11-03 19:50:59.625 New DB connection, total: 1
2007-11-03 19:50:59.636 Unable to connect to database!
2007-11-03 19:50:59.637 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 19:50:59.714 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 19:50:59.780 Failed to init MythContext, exiting.
2007-11-03 20:12:24.645 Using runtime prefix = /usr
2007-11-03 20:12:24.691 New DB connection, total: 1
2007-11-03 20:12:24.711 Unable to connect to database!
2007-11-03 20:12:24.712 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:12:24.765 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:12:24.816 Failed to init MythContext, exiting.
2007-11-03 20:13:57.060 Using runtime prefix = /usr
2007-11-03 20:13:57.096 New DB connection, total: 1
2007-11-03 20:13:57.105 Unable to connect to database!
2007-11-03 20:13:57.119 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:13:57.175 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:13:57.226 Failed to init MythContext, exiting.
2007-11-03 20:28:55.123 Using runtime prefix = /usr
2007-11-03 20:28:55.147 New DB connection, total: 1
2007-11-03 20:28:55.156 Unable to connect to database!
2007-11-03 20:28:55.157 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:28:55.210 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:28:55.261 Failed to init MythContext, exiting.
2007-11-03 20:38:48.772 Using runtime prefix = /usr
2007-11-03 20:38:48.806 New DB connection, total: 1
2007-11-03 20:38:48.815 Unable to connect to database!
2007-11-03 20:38:48.815 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)
QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2007-11-03 20:38:48.868 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2007-11-03 20:38:48.919 Failed to init MythContext, exiting.
Thanks!