[mythtv-commits] Ticket #2749: mythbackend fails to start after database password change

MythTV mythtv at cvs.mythtv.org
Tue Nov 28 23:34:43 UTC 2006


#2749: mythbackend fails to start after database password change
---------------------------------+------------------------------------------
 Reporter:  dcarlo at swillers.com  |       Owner:  ijr    
     Type:  defect               |      Status:  new    
 Priority:  minor                |   Milestone:  unknown
Component:  mythtv               |     Version:  0.20   
 Severity:  medium               |  
---------------------------------+------------------------------------------
 I changed the password for the mythtv user in MySQL, updated my mysql.txt
 file, and the mythbackend service wouldn't start after a reboot.  The log
 showed:

 =====================================================================
 2006-11-28 17:47:09.755 Failed to init MythContext, exiting.
 2006-11-28 18:13:27.142 Using runtime prefix = /usr
 2006-11-28 18:13:27.256 New DB connection, total: 1
 2006-11-28 18:13:27.266 Unable to connect to database!
 2006-11-28 18:13:27.267 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
 2006-11-28 18:13:27.325 DB Error (KickDatabase):
 Query was:
 SELECT NULL;
 No error type from QSqlError?  Strange...
 =====================================================================

 It would start if I ran `/etc/init.d/mythbackend start`.   After tinkering
 around for a while, I discovered if I set the HOME environment variable,
 the service would start properly.  It looks like mythbackend uses $HOME to
 find the mysql.txt file which isn't present when the startup script is
 invoked by init.  I'm running mythTV FC6.

 Hope this helps.  Keep up the good work.

     --Dave

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2749>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list