<div dir="ltr"><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">The new line is: ALTER USER 'mythtv'@'localhost' IDENTIFIED WITH mysql_native_password;<br>
(assuming mythtv is the user being created if it doesn't exist and then altered.)<br>
<br>
Please mention your SQL version.<br>
<br>
If you try the above ALTER... does it remove your password. It didn't in my tests<br>
and per the help pages (at least my reading of them.) There is a RETAIN CURRENT PASSWORD<br>
option, but I'm not certain that it works for all versions of MariaDB and MySQL. There's<br>
also mentioned of it applying to a secondary password.<br></blockquote><div><br></div><div>Hi Bill,</div><div><br></div><div>This is an existing installation carried forward from 0.29 --> 30 --> 31 and the mythtv mysql user has existed for some time across database restores with server upgrades etc.  I assume the mythtv user was created during a prior mythbuntu version install as I don't recall setting up mythtv user in mysql manually in the past.</div><div><br></div><div>I logged into mysql and ran the ALTER command you requested but it does not work with the syntax provided.  See output below:</div><div><br></div><div>Server version: 5.7.29-0ubuntu0.18.04.1 (Ubuntu)<br><br>mysql> ALTER USER 'mythtv'@'localhost' IDENTIFIED WITH mysql_native_password;<br>ERROR 1396 (HY000): Operation ALTER USER failed for 'mythtv'@'localhost'</div><div><br></div><div>mysql> select host, user from mysql.user;<br>+-----------+------------------+<br>| host      | user             |<br>+-----------+------------------+<br>| %         | mythtv           |<br>| localhost | debian-sys-maint |<br>| localhost | mysql.session    |<br>| localhost | mysql.sys        |<br>| localhost | root             |<br>+-----------+------------------+<br></div><div><br>mysql> ALTER USER 'mythtv'@'%' IDENTIFIED WITH mysql_native_password;<br>Query OK, 0 rows affected (0.00 sec)</div><div>mysql> FLUSH PRIVILEGES;<br>Query OK, 0 rows affected (0.00 sec)<br></div><div><br></div><div>However, after executing these commands, the backend immediately disconnected from database and I had to reset the mythtv mysql user back to the original password via ALTER USER ...IDENTIFIED BY to get it to reconnect as per my original message.</div><div><br></div><div>Tim<br><br><br></div></div></div>