<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <table width="100%" border="0">
      <tbody>
        <tr>
          <td colspan="2">
            <blockquote type="cite">
              <table width="100%" border="0">
                <tbody>
                  <tr>
                    <td colspan="2"><br>
                    </td>
                  </tr>
                </tbody>
              </table>
              <font color="black" face="Verdana,Arial,Helvetica"
                size="2"> On 07/18/2011 03:31 AM, mlt wrote: <br>
                <font color="#660066">&gt; I have just reinstalled
                  mythtv and am having trouble restoring my <br>
                  &gt; database backup - I am using mythbuntu 11.04. <br>
                  &gt; <br>
                  &gt; When I run restore I get the following message: <br>
                  &gt; <br>
                  &gt; ERROR 1064 (42000) at line 2794: You have an
                  error in your SQL <br>
                  &gt; syntax; check the manual that corresponds to your
                  MySQL server <br>
                  &gt; version for the right syntax to use near <br>
                  &gt; '308:64,9),(1002,'2010-12-28
                  08:33:00',15726,(10402,'910-12-28 <br>
                  &gt; 08:33:00',12066,32' at line 1 <br>
                  &gt; <br>
                  &gt; ERROR: Cannot write to mysql, stopped at
                  ./mythconverg_restore.pl <br>
                  &gt; line 1720, &lt;BACKUP&gt; line 2797. <br>
                  &gt; <br>
                  &gt; <br>
                  &gt; I have tried to do a partial restore and get the
                  same message. <br>
                  &gt; <br>
                  &gt; When I try to open the file I get this message: <br>
                  &gt; <br>
                  &gt; gzip: mythconverg-1264-20110716142445.sql.gz:
                  invalid compressed <br>
                  &gt; data--crc error <br>
                  &gt; <br>
                  &gt; gzip: mythconverg-1264-20110716142445.sql.gz:
                  invalid compressed <br>
                  &gt; data--length error <br>
                  &gt; <br>
                  &gt; <br>
                  &gt; Is there anything that I can do with this or is
                  the backup file <br>
                  &gt; corrupted in a way beyond recall -mysql is not my
                  thing... </font><br>
              </font></blockquote>
          </td>
        </tr>
      </tbody>
    </table>
    <font color="black" face="Verdana,Arial,Helvetica" size="2"><font
        color="#660066"><br>
      </font> <br>
      &gt;Looks like your file got truncated somehow. Does gzip -d leave
      an <br>
      &gt;uncompressed "partial" file? <br>
      &gt;<br>
      &gt;gzip -d mythconverg-1264-20110716142445.sql.gz <br>
      &gt;<br>
      &gt;Do you have other backups or even the originaly mysql binary
      data files? <br>
      <br>
      &gt;Mike </font><br>
    <br>
    Thanks for the reply. <br>
    <br>
    I was able to unzip the archive using ark in KDE, and their seem to
    be a number of errors in the syntax to do with recordings.<br>
    <br>
    Unfortunately, this really was the backup as I trashed the previous
    installation (apart from the recordings).<br>
    <br>
    Anyway of tidying up the syntax automatically?&nbsp; As I say MySQL isn't
    something I have any knowledge of...<br>
    <br>
  </body>
</html>