mythtv-database fails to install/upgrade with remote mysql database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mythbuntu |
Fix Released
|
Undecided
|
Unassigned | ||
mythtv (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Install/Upgrade fails when mysql server is not on the same machine as the backend with:
Setting up mythtv-database (2:0.24.
Failed to connect to database (incorrect admin password)
ERROR 2005 (HY000): Unknown MySQL server host '"mysql.localnet"' (1)
ERROR 2005 (HY000): Unknown MySQL server host '"mysql.localnet"' (1)
ERROR 2005 (HY000): Unknown MySQL server host '"mysql.localonet"' (1)
ERROR 2005 (HY000): Unknown MySQL server host '"mysql.localnet"' (1)
ERROR 2005 (HY000): Unknown MySQL server host '"mysql.localnet"' (1)
Failed to create or modify database (incorrect admin username/password?)
Try:
sudo dpkg-reconfigure mythtv-database
This machine is resolvable from the backend machine:
ryan@Doctor:
Server: 192.168.254.1
Address: 192.168.254.1#53
mysql.localnet canonical name = picard.localnet.
Name: picard.localnet
Address: 192.168.254.1
Removing the escaped quotes (See Patch/Diff) on --host and --user of each of the SECURITY_INFO= lines fixes this issue
Patch works for me.
I use 0.25 from the mythbuntu repos.