<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Thu, Jan 14, 2021 at 7:17 PM A. F. Cano <<a href="mailto:afc54@comcast.net">afc54@comcast.net</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jan 15, 2021 at 12:05:15AM +0000, John Pilkington wrote:<br>
> On 14/01/2021 22:05, A. F. Cano wrote:<br>
> > On Thu, Jan 14, 2021 at 02:31:28PM -0500, A. F. Cano wrote:<br>
> > > Hello everyone,<br>
> > > <br>
> > > Latest update: Now mysql is totally inaccessible, so the mythtv server doesn't<br>
> > > even start. I left all the details of how I got to this point for<br>
> > > completeness.<br>
> > <br>
> > That is still the case, I did manage to create the root user but I can't<br>
> > do anything with it. At least I can start mysql -u root but nothing<br>
> > else works. I also re-created the mythtv user. Even flush privileges<br>
> > doesn't work. Obviously just re-creating the root user wasn't enough,<br>
> > how do I give it the privileges it needs?<br>
> > <br>
> > Thanks.<br>
> > <br>
> > Augustine<br>
> <br>
> I'm far from being a DB guru and I'm reluctant to jump in here, but last<br>
> July I had DB access problems which seemed to arise after an upgrade from<br>
> trying to follow conflicting sets of instructions relating to 'root' With<br>
> guidance from Bill Meek I was able to recover and it's just possible that<br>
> you might find it helpful too. It's here, in the last couple of posts in<br>
> this thread - and FWIW it was a Fedora box. I think the real meat is at<br>
> "Here's the entire set of commands:"<br>
> <br>
> <a href="https://lists.archive.carbon60.com/mythtv/users/632838#632838" rel="noreferrer" target="_blank">https://lists.archive.carbon60.com/mythtv/users/632838#632838</a><br>
<br>
I think my problem is much more basic. I can do absolutely nothing. At<br>
first I thought (from what I've read so far) that somehow I was logged<br>
in as the anonymous user:<br>
<br>
MariaDB [(none)]> select user(), current_user();<br>
+----------------+----------------+<br>
| user() | current_user() |<br>
+----------------+----------------+<br>
| root@localhost | root@localhost |<br>
+----------------+----------------+<br>
1 row in set (0.000 sec)<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:monospace,monospace">Your usernames should never include the hosts. I guess you did not put the hostname in ''s when you added them. You may be able to fix them by just updating the user table - not sure.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">update user set user = 'root' where user like 'root%';</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">(use at your own risk) - my user table -</div><div class="gmail_default" style=""><font face="monospace"><br></font></div><font face="monospace">MariaDB [mysql]> select host, user from user;<br>+-----------------+--------+<br>| host | user |<br>+-----------------+--------+<br>| 127.0.0.1 | root |<br>| 192.168.100.% | mythtv |<br>| 192.168.100.151 | mythtv |<br>| 192.168.99.% | mythtv |<br>| ::1 | root |<br>| localhost | root |<br>+-----------------+--------+<br>6 rows in set (0.00 sec)</font><br><div class="gmail_default" style="font-family:monospace,monospace"></div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm not quite sure what this indicates, but I don't see ''@localhost<br>
(the anonymous user) and yet the current user I'm logged in as<br>
(using mysql -u root) doesn't let me do anything:<br>
<br>
MariaDB [(none)]> use mysql;<br>
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'<br>
MariaDB [(none)]> use mythtv;<br>
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mythtv<br>
<br>
MariaDB [(none)]> grant all privileges on mythconverg.* to 'mythtv'@'localhost' identified by 'xxxx' with grant option;<br>
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mythconverg'<br>
<br>
MariaDB [(none)]> grant all privileges on *.* to 'root'@'localhost' identified by 'xxxx' with grant option;<br>
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)<br>
<br>
'xxxx' are the passwords that used to work before (in the case of<br>
mythtv) and the new one I've just created for root@localhost, in case<br>
having an empty password was the issue. '' also gave the same results<br>
(for root).<br>
<br>
MariaDB [(none)]> update mysql.user set password=password('') where user='root';<br>
ERROR 1142 (42000): UPDATE command denied to user 'root'@'localhost' for table 'user'<br>
MariaDB [(none)]> flush privileges;<br>
ERROR 1227 (42000): Access denied; you need (at least one of) the RELOAD privilege(s) for this operation<br>
<br>
Does anybody know what I can do to overcome this? Thanks...<br>
<br>
Augustine<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><br>
</blockquote></div></div>