<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 21, 2015 at 4:30 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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
<br>
</div></div>My guess would be that some of the internal MySQL tables that control<br>
things are corrupt also, so you likely need to run mysqlcheck to see<br>
what is wrong and then use its repair option if necessary.<br>
<br></blockquote><div><br></div><div>I did a bunch of mysqlcheck with various options such as --check, --repair, --auto-repair (never getting any output). Not sure what they did, if anything, but </div><div></div></div></div><div class="gmail_extra">now if I do my original command</div><div class="gmail_extra"><br></div><div class="gmail_extra"><p style="margin:0px;font-size:13px;font-family:Fixed"><a href="http://mythconverg_restore.pl">mythconverg_restore.pl</a> --drop_database --create_database --verbose --filename  mythconverg-1317-20150220033002.sql.gz </p><p style="margin:0px;font-size:13px;font-family:Fixed"><br></p><p style="margin:0px;font-size:13px;font-family:Fixed">it says it can't drop the database</p><p style="margin:0px;font-size:13px;font-family:Fixed"><br></p><p style="margin:0px;font-size:13px;font-family:Fixed">...blablah...</p><p style="margin:0px;font-size:13px;font-family:Fixed">Preparing initial database.</p><p style="margin:0px;font-size:13px;font-family:Fixed">Dropping database.</p><p style="margin:0px;font-size:13px;font-family:Fixed;min-height:13px"><br></p><p style="margin:0px;font-size:13px;font-family:Fixed">ERROR: Unable to drop database.</p><p style="margin:0px;font-size:13px;font-family:Fixed">



</p><p style="margin:0px;font-size:13px;font-family:Fixed">Error dropping database (can't rmdir './mythconverg/', errno: 17)</p></div><div class="gmail_extra"><br></div><div class="gmail_extra">and if I try the same without --drop_database it says there is one already so it can't create:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><p style="margin:0px;font-size:13px;font-family:Fixed"><a href="http://mythconverg_restore.pl">mythconverg_restore.pl</a> --create_database --verbose --filename  mythconverg-1317-20150220033002.sql.gz </p>
<p style="margin:0px;font-size:13px;font-family:Fixed;min-height:13px"><br></p><p style="margin:0px;font-size:13px;font-family:Fixed;min-height:13px">..blah..</p></div><div class="gmail_extra"><p style="margin:0px;font-size:13px;font-family:Fixed">Preparing initial database.</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">Creating database.</p>
<p style="margin:0px;font-size:13px;font-family:Fixed;min-height:13px"><br></p>
<p style="margin:0px;font-size:13px;font-family:Fixed">ERROR: Unable to create database.</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">Can't create database 'mythconverg'; database exists</p></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I hate when they give you a relative path in the error message. Where the hell is that ./mythconverg/ it can't rmdir? Is it that it can't rmdir because it doesn't have permission to it, or because it's not there? If the latter, what's the bit of database that still exists when the script fails to create the database?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><p style="margin:0px;font-size:13px;font-family:Fixed">find / -name mythconverg -print</p><div><br></div><div>gives nothing (other than the usual annoying bunch of "permission denied" on /proc etc)</div><div><br></div></div></div>