<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 5:56 PM, Nick Morrott <span dir="ltr"><<a href="mailto:knowledgejunkie@gmail.com" target="_blank">knowledgejunkie@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="">On 25 January 2016 at 05:37, David L <<a href="mailto:idht4n@gmail.com">idht4n@gmail.com</a>> wrote:<br>
> mythfilldatabase stopped working for me about a month ago. I get errors<br>
> like this:<br>
> 016-01-24 21:18:01.068920 E Error preparing query: DELETE FROM program<br>
> WHERE starttime >= :FROM AND starttime < :TO AND chanid = :CHANID ;<br>
> 2016-01-24 21:18:01.068931 E Driver error was [2/144]:<br>
> QMYSQL3: Unable to prepare statement<br>
> Database error was:<br>
> Table './mythconverg/program' is marked as crashed and last (automatic?)<br>
> repair failed<br>
><br>
> 2016-01-24 21:18:01.069814 E Error preparing query: DELETE FROM program<br>
> WHERE starttime >= :FROM AND starttime < :TO AND chanid = :CHANID ;<br>
><br>
> I googled a bit and found some people that had similar problems. I tried<br>
> this recommended solution:<br>
><br>
> mysqlcheck -r -umythtv -pxxxxxxxx mythconverg<br>
><br>
> But that also gave me an error:<br>
><br>
> mythconverg.program<br>
> error : Can't create new tempfile: './mythconverg/program.TMD'<br>
> status : Operation failed<br>
><br>
> I have enough disk space, so that's not the problem. I also found people<br>
> with similar problems but didn't quite follow the solutions. Any help would<br>
> be appreciated.<br>
<br>
</span>David,<br>
<br>
An alternative strategy is to use myisamchk from the command line with<br>
mysqld stopped (which may or may not help).<br>
<br>
i) Shutdown mysqld (and any programs using MySQL)<br>
<br>
ii) Change to the mythconverg DB directory<br>
(/var/lib/mysql/mythconverg). It's always a good idea to take a backup<br>
of the files if you haven't already.<br></blockquote><div>An interesting thing happened when I tried to backup the mythconverg directory.</div><div><div><br></div><div>cp: error reading ‘program.MYD’: Input/output error</div><div>cp: failed to extend ‘/home/david/tmp/mythconverg/program.MYD’: Input/output error</div></div><div><br></div><div>I think my hard drive might be bad.</div><div><br></div><div>I forced a file system check on the next reboot and rebooted several hours ago. It's not back up yet. :(</div><div><br></div><div><br></div></div></div></div>