<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 6, 2018 at 10:54 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Mon, 6 Aug 2018 16:28:15 -0400, you wrote:<br>
<br>
> mysql> GRANT ALL PRIVILEGES ON *.* TO 'mythtv'@'localhost' IDENTIFIED BY<br>
>'mythtv' WITH GRANT OPTION;<br>
>Query OK, 0 rows affected, 1 warning (0.01 sec)<br>
><br>
>mysql> SET PASSWORD for 'mythtv' = PASSWORD('********');<br>
>Query OK, 0 rows affected, 1 warning (0.00 sec)<br>
><br>
>mysql> FLUSH PRIVILEGES;<br>
>Query OK, 0 rows affected (0.00 sec)<br>
><br>
>mysql> quit<br>
>Bye<br>
><br>
>Need I be concerned about the "zero rows affected" warning?<br>
<br>
</span>I do not have MySQL installed anywhere to try the commands to give you<br>
a certain answer to that (I use MariaDB), but I think that it is fine.<br>
<span class="gmail-"><br>
>Have I been clear that this is a new install of Ubuntu DeskTop 16.04 and<br>
>that Myth setup has never been opened?<br>
<br>
</span>No, and that may explain the next problem below.<br>
<div><div class="gmail-h5"><br>
>Trying to restore again gives:<br>
><br>
>daryl@trieli:~$ sudo ./<a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> --create_database --directory<br>
>~ --filename mythconverg-1344-<wbr>20180804112717.sql.gz --verbose<br>
><br>
>Configuring environment:<br>
>  -    username: root<br>
>  -        HOME: /home/daryl<br>
>  - MYTHCONFDIR: /home/daryl/.mythtv<br>
><br>
>Parsing configuration files:<br>
>  - checking: /home/daryl/.mythtv/config.xml<br>
>  - checking: /usr/local/share/mythtv/mysql.<wbr>txt<br>
>  - checking: /usr/share/mythtv/mysql.txt<br>
>  - checking: /usr/local/etc/mythtv/mysql.<wbr>txt<br>
>  - checking: /etc/mythtv/mysql.txt<br>
>  - checking: /home/daryl/.mythtv/mysql.txt<br>
>  - checking: mysql.txt<br>
>  - checking: /home/daryl/.mythtv/mysql.txt<br>
>  - checking: /home/daryl/.mythtv/backuprc<br>
><br>
>Applying command-line arguments.<br>
><br>
>Checking configuration.<br>
><br>
>WARNING: DBName not specified. Using mythconverg<br>
><br>
>WARNING: DBHostName not specified.<br>
>         Assuming it is specified in the MySQL options file.<br>
><br>
>WARNING: DBUserName not specified.<br>
>         Assuming it is specified in the MySQL options file.<br>
><br>
>WARNING: DBPassword not specified.<br>
>         Assuming it is specified in the MySQL options file.<br>
><br>
>Database Information:<br>
>         DBHostName:<br>
>             DBPort: -1<br>
>         DBUserName:<br>
>         DBPassword:<br>
>             DBName: mythconverg<br>
>        DBSchemaVer:<br>
>  DBBackupDirectory: /home/daryl<br>
>   DBBackupFilename: mythconverg-1344-<wbr>20180804112717.sql.gz<br>
>      drop_database: no<br>
>    create_database: yes<br>
><br>
>Executables:<br>
>       mysql_client: mysql<br>
>         uncompress: gzip -d<br>
><br>
>Miscellaneous:<br>
>    partial_restore: no<br>
>   restore_xmltvids: no<br>
>    change_hostname: no<br>
><br>
>Checking database.<br>
>DBI connect('host=:database=<wbr>mythconverg','',...) failed: Access denied for<br>
>user 'root'@'localhost' (using password: NO) at ./<a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a><br>
>line 933.<br>
><br>
>Preparing initial database.<br>
>DBI connect('host=','',...) failed: Access denied for user 'root'@'localhost'<br>
>(using password: NO) at ./<a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> line 933.<br>
><br>
>Unable to connect to database.<br>
>           database: mythconverg<br>
>               host:<br>
>           username:<br>
>           password:<br>
><br>
>Please check your configuration files to verify the database connection<br>
>information is correct.  The files that are used to retrieve connection<br>
>information are prefixed with "parsing" in the "Parsing configuration files"<br>
>section of the --verbose output.<br>
><br>
>Also note that any [client] or [mysql] password specified in the MySQL<br>
>options<br>
>file (/etc/my.cnf or /etc/mysql/my.cnf or ~/.my.cnf) will take precedence<br>
>over<br>
>the password specified in the MythTV configuration files.<br>
><br>
>ERROR: Unable to connect to database.<br>
<br>
</div></div>From that, it appears that <a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> is not finding a<br>
config.xml or mysql.txt file to use for the user/password to access<br>
the database.  First, check if you have a /etc/mythtv directory.  If<br>
it is there and contains a config.xml file, then you should link to it<br>
from the other places a config.xml file is needed, see below.<br></blockquote><div><br></div><div>I re-did the new install (OS $ Myth), and yes there is a config.xml filoe in /etc/mythtv </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If there is not a /etc/mythtv directory or it does not contain a<br>
config.xml file, then you need to create and populate it.  I suspect<br>
that running mythtv-setup will do that, so I would try that first,<br>
from user "daryl".  Do not bother to actually set up anything inside<br>
mythtv-setup, as anything you do will be overwritten by the database<br>
restore.  Mythtv-setup may object to that and not want to exit, but<br>
just answer the "do you really want to exit" type questions with "yes<br>
I do" and exit it.  Then check the following locations for config.xml<br>
files:<br>
<br>
/etc/mythtv/config.xml<br>
/home/mythtv/.mythtv/config.<wbr>xml<br>
/home/daryl/.mythtv/config.xml<br>
<br>
You need a config.xml file in each of those places.  I have found that<br>
in most circumstances, it is best to have just one config.xml file in<br>
/etc/mythtv/config.xml and link to it from all other locations.  So if<br>
you now have a /etc/mythtv/config.xml file, then do this:<br>
<br>
sudo rm /home/mythtv/.mythtv/config.<wbr>xml<br></blockquote><div>done</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo rm /home/daryl/.mythtv/config.xml<br></blockquote><div>done</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo mkdir /home/mythtv/.mythtv<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo chown mythtv:mythtv /home/mythtv/.mythtv<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo mkdir /home/mythtv/.mythtv (assumed /home/daryl/.mythtv)<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo chown daryl:daryl /home/mythtv/.mythtv  (assumed /home/daryl/.mythtv)<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo ln -s /etc/mythtv/config.xml /home/mythtv/.mythtv/config.<wbr>xml<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
sudo ln -s /etc/mythtv/config.xml /home/daryl/.mythtv/config.xml<br></blockquote><div>done </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Do not worry if there are any error messages on any of those commands<br>
except the "sudo ln" ones.<br>
<br>
Then check the /etc/mythtv/config.xml file and see if it has a<br>
password you are happy with. </blockquote><div>it is other than the one I posted earlier, so I'm OK with it </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> If not, then create a new password<br>
(using apg?) and edit it into the /etc/mythtv/config.xml file.  To<br>
edit /etc/mythtv/config.xml, this should work:<br>
<br>
sudo nano /etc/mythtv/config.xml<br>
<br>
If nano is not installed, install it and try again:<br>
<br>
sudo apt install nano<br>
<br>
Then you can try restoring the database again.<br></blockquote><div><br></div><div>Thanks Stephen, so now am I ready to try to restore the database?  I have not launched myth FE or BE, so do I need "--drop_database --create_database" arguments?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div></div>