<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 8, 2021 at 9:49 PM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 8 Aug 2021 17:46:47 -0500, you wrote:<br>
<br>
>Hi all,<br>
><br>
>Was running updates today as my non-mythtv regular username, with sudo<br>
>access of course, and when it was updating the database it gave me the<br>
>following error:<br>
><br>
>Failed to connect to database (incorrect admin password)<br>
>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using<br>
>password: NO)<br>
><br>
>I was using the command-line this time as previous updates have broken my<br>
>video driver (I guess) and so can't run KDE on this backend right now. So,<br>
>not sure if this happens when I use the graphical style daily update<br>
>methods, but it is generally run as my own user with sudo access too.<br>
><br>
>Anyway, have been having odd issues here and there, and wonder if I've been<br>
>missing out on database updates this whole time because root is not able to<br>
>connect?<br>
><br>
>What's the right way to solve this? I've been under the impression that you<br>
>shouldn't muck with databases as user root, so don't think I've ever set it<br>
>to have access to mythconverg, but also didn't know that the update<br>
>mechanism required it...<br>
><br>
>Thanks for any thoughts,<br>
><br>
><br>
>-- George<br>
<br>
If a root config.xml is really required, the easiest thing to do would<br>
be to create a link from /root/.mythtv/config.xml to<br>
/etc/mythtv/config.xml:<br>
<br>
sudo su<br>
cd /root/mythtv<br>
ln -s /etc/mythtv/config.xml<br>
exit<br>
<br>
But I thought that the /etc/mythtv/config.xml file was used when<br>
MythTV programs were run from root. So maybe it is a packaging<br>
problem. Anyway, to fix the existing situation, create the link and<br>
then you may need to manually run:<br>
<br>
sudo dpkg-reconfigure mythtv-database<br>
<br>
But I think that mythbackend will automatically do schema updates if<br>
necessary when it starts up, so you should be up to date despite the<br>
error messages.<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a></blockquote><div><br></div><div><br></div><div>Thank you Stephen,</div><div><br></div><div>I did the sudo su, and in the root home directory there already was a link to config.xml - must be done automagically because I don't recall explicitly setting that. Anyway, I did the dpkg--reconfigure step while root and this time it worked, however it wasn't what I expected, it brought up the interface asking for root username and the root password, which I entered, but is not the same as the mythtv username or password that's in the config file. Then it asked if other machines were going to connect and I entered 'yes' and that was it, after about 10 seconds it was done.</div><div><br></div><div>I took a look at the mysql error logs, and there's no entries from today, and yesterday's log file was just a few messages about initializing being successful and ready for connection, but no mention of any connection failures.</div><div><br></div><div>Kinda a mystery to me, but either way MythTV seems to be working OK. Although I do occasionally have failures relating to it not having enough buffers when I change channels or enter into live TV. Anyway, I doubt that's related to this. </div><div><br></div><div>Thanks,</div><div><br></div><div>George</div></div></div>