<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sat, Feb 21, 2015 at 1:55 AM, Mike Hodson <span dir="ltr"><<a href="mailto:mystica@gmail.com" target="_blank">mystica@gmail.com</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"><span class=""><p dir="ltr">Check your mysql error log, named 'yourhostname.err'  which will he wherever the database files live - often /var/lib/mysql/ - for any errors or oddities; the last lines should tell the tale.<br></p></span>
<p dir="ltr"></p></blockquote><div><br></div><div>Thanks for the tip.</div><div>I don't seem to have an error log in /var/lib/mysql. The only things I have ending in .err are</div><div><br></div><div><span style="font-family:Fixed;font-size:13px">find / -name '*.err' -print</span><span style="font-family:Fixed;font-size:13px"> </span></div><div><br></div><p style="margin:0px;font-size:13px;font-family:Fixed">/var/var/log/mail.err</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">/var/var/log/news/news.err</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">/var/var/log/mysql.err</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">/var/log/mail.err</p>
<p style="margin:0px;font-size:13px;font-family:Fixed">/var/log/news/news.err</p>
<div><span style="font-family:Fixed;font-size:13px">/var/log/mysql.err</span></div><div><br></div><div>and the two mysql.err files are both 0 bytes long.</div><div>I did however eventually find (this may help other mythbuntu users) that /var/log/mysql was a directory full of error.log.?.gz and that the one for yesterday had some data in it, saying that a bunch of mythconverg tables were "marked as crashed and should be repaired".</div><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"><p dir="ltr">Based on the error you may have more tables to repair or maybe a corrupt innodb if you use that table type.  But the logs should give you some idea of what to try next.  Bpaste.net if you'd like more eyes on them.</p></blockquote><div>Much appreciated... it doesn't give me much of a hint personally! I thought dropping the database, recreating it and restoring it would get rid of all those tables and replace them with good copies anyway, so this doesn't tell me why the script freezes at "dropping database". Here's the whole file.</div><div><br></div><div><a href="https://bpaste.net/show/7b5116952ccd">https://bpaste.net/show/7b5116952ccd</a> <br></div><div><br></div><div>Thanks</div></div></div></div>