<div dir="ltr"><div class="gmail_default" style="font-size:small"><span style="color:rgb(80,0,80)">On Thu, 5 Aug 2021 at 02:21, Mike Perkins <</span><a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a><span style="color:rgb(80,0,80)">> wrote:</span></div><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"><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-im" style="color:rgb(80,0,80)">On 04/08/2021 18:46, Justin Smith wrote:<br>> $ /usr/share/mythtv/<a href="http://mythconverg_restore.pl/" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> --drop_database<br>> --create_database --name mythconverg --filename<br>> mythconverg-1361-20210801074136.sql.gz --verbose<br></span><span class="gmail_default"><snip><br></span><span class="gmail-im" style="color:rgb(80,0,80)">> Preparing initial database.<br>> Dropping database.<br>> DBD::mysql::st execute failed: Schema directory './mythconverg/' does not<br>> exist at /usr/share/mythtv/<a href="http://mythconverg_restore.pl/" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> line 1052.<br>><br>> ERROR: Unable to drop database.<br>> Schema directory './mythconverg/' does not exist<br>><br>> Does anyone know where I have gone wrong?<br></span></blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, you did specify "--drop-database" and you don't have one yet.<span class="gmail-im" style="color:rgb(80,0,80)"><br>Fell down that hole myself in the past...</span></blockquote></blockquote><div><br></div><div class="gmail_default">But mysql tells me I do... Before I ran the restore command, I ran:</div><div class="gmail_default">mysql> show databases;<br>+--------------------+<br>| Database           |<br>+--------------------+<br>| information_schema |<br>| mythconverg        |<br>+--------------------+<br>2 rows in set (0.01 sec)<br></div><div class="gmail_default"><br></div><div class="gmail_default">The mythconverg database is automatically created when you install mythtv (at least on Ubuntu).</div><div class="gmail_default"><br></div><div class="gmail_default">Trying to delete the database manually returns:</div><div class="gmail_default">mysql> drop database mythconverg;<br>ERROR 3679 (HY000): Schema directory './mythconverg/' does not exist<br></div><div class="gmail_default"><br></div><div class="gmail_default">I found my problem: I mangled the mysql configuration I moved the mysql database directory to a separate partition.</div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div></div></div><div class="gmail_default" style="font-size:small">Justin.</div><div class="gmail_default" style="font-size:small"></div></div>