Para que o mysbackend se conecte ao mysql no Ubuntu LTS 14.04.5, eu tive que alterar manualmente a configuração em /etc/mythtv/config.xml
para a senha do MySQl. No meu caso, USER=mythtv | PASSWORD=mythtv
, de acordo com a tela de configuração da GUI para o mythtv, mas que não correspondia aos valores padrão fornecidos no arquivo XML.
Veja como ficaram as coisas depois que as edições foram feitas:
<Configuration>
<Database>
<PingHost>1</PingHost>
<Host>localhost</Host>
<UserName>mythtv</UserName>
<Password>mythtv</Password>
<DatabaseName>mythconverg</DatabaseName>
<Port>3306</Port>
</Database>
<WakeOnLAN>
<Enabled>0</Enabled>
<SQLReconnectWaitTime>0</SQLReconnectWaitTime>
<SQLConnectRetry>5</SQLConnectRetry>
<Command>echo 'WOLsqlServerCommand not set'</Command>
</WakeOnLAN>
</Configuration>
Depois disso, invocar manualmente o backend do mythtv a partir da linha de comando (mostrada abaixo) parece mostrar que, pelo menos, o mythtv poderia se conectar com sucesso ao MySQL:
# mythbackend
2017-02-25 12:41:15.716242 C mythbackend version: fixes/0.27 [v0.27-193-g8ee257c] www.mythtv.org
2017-02-25 12:41:15.716477 C Qt version: compile: 4.8.6, runtime: 4.8.6
2017-02-25 12:41:15.716485 N Enabled verbose msgs: general
2017-02-25 12:41:15.716511 N Setting Log Level to LOG_INFO
2017-02-25 12:41:15.728628 I Setup Interrupt handler
2017-02-25 12:41:15.728649 I Setup Terminated handler
2017-02-25 12:41:15.728666 I Setup Segmentation fault handler
2017-02-25 12:41:15.728683 I Setup Aborted handler
2017-02-25 12:41:15.728696 I Setup Bus error handler
2017-02-25 12:41:15.728711 I Setup Floating point exception handler
2017-02-25 12:41:15.728724 I Setup Illegal instruction handler
2017-02-25 12:41:15.728743 I Setup Real-time signal 0 handler
2017-02-25 12:41:15.728820 N Using runtime prefix = /usr
2017-02-25 12:41:15.728839 N Using configuration directory = /root/.mythtv
2017-02-25 12:41:15.728962 I Assumed character encoding: en_HK.UTF-8
2017-02-25 12:41:15.729455 N Empty LocalHostName.
2017-02-25 12:41:15.729471 I Using localhost value of silver
2017-02-25 12:41:15.734868 I Added logging to the console
2017-02-25 12:41:15.746596 N Setting QT default locale to en_HK
2017-02-25 12:41:15.746702 I Current locale en_HK
2017-02-25 12:41:15.746798 E No locale defaults file for en_HK, skipping
Table 'mythconverg.settings' doesn't exist
2017-02-25 12:41:15.751405 E Error preparing query: SELECT data FROM settings WHERE value = :VALUE AND hostname = :HOSTNAME
2017-02-25 12:41:15.751426 E Driver error was [2/1146]:
QMYSQL3: Unable to prepare statement
Database error was:
Table 'mythconverg.settings' doesn't exist
2017-02-25 12:41:15.752399 I No current database version?
2017-02-25 12:41:15.752931 I Database appears to be empty/new!
2017-02-25 12:41:15.752964 I The database seems to be empty - not attempting a backup
2017-02-25 12:41:15.784350 N Inserting MythTV initial database information.
2017-02-25 12:41:15.784401 C Upgrading to MythTV schema version 1307
2017-02-25 12:41:15.839389 I New Client: (#1)
2017-02-25 12:41:20.656220 C Upgrading to MythTV schema version 1308
2017-02-25 12:41:20.739196 C Upgrading to MythTV schema version 1309
2017-02-25 12:41:20.743457 C Upgrading to MythTV schema version 1310
2017-02-25 12:41:20.745158 C Upgrading to MythTV schema version 1311
2017-02-25 12:41:20.808532 C Upgrading to MythTV schema version 1312
2017-02-25 12:41:20.813258 C Upgrading to MythTV schema version 1313
2017-02-25 12:41:20.877572 C Upgrading to MythTV schema version 1314
2017-02-25 12:41:20.880266 C Upgrading to MythTV schema version 1315
2017-02-25 12:41:20.881536 C Upgrading to MythTV schema version 1316
2017-02-25 12:41:21.006324 C Upgrading to MythTV schema version 1317
No setting found for this machine's BackendServerIP.
Please run setup on this machine and modify the first page
of the general settings.
2017-02-25 12:41:21.502112 I Database schema upgrade complete.
2017-02-25 12:41:21.504143 I Loading en_us translation for module mythfrontend