<div class="gmail_quote">On Wed, Jan 28, 2009 at 2:11 PM, Nick Rout <span dir="ltr">&lt;<a href="mailto:nick.rout@gmail.com">nick.rout@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Jan 29, 2009 at 7:22 AM, Brad DerManouelian<br>
&lt;<a href="mailto:myth@dermanouelian.com">myth@dermanouelian.com</a>&gt; wrote:<br>
&gt; On Jan 28, 2009, at 10:11 AM, Captain Krypto wrote:<br>
&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I am a dumb dumb and accidently dropped my videometadata table from<br>
&gt;&gt; mythconverg.<br>
&gt;&gt;<br>
&gt;&gt; I was trying to restore it from a recent backup and I get the following<br>
&gt;&gt; error when running the command:<br>
&gt;&gt;<br>
&gt;&gt; mysql -u mythtv -pmythtv mythconverg &lt; videometadata.sql<br>
&gt;&gt;<br>
&gt;&gt; ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check<br>
&gt;&gt; the manual that corresponds to your MySQL server version for the right<br>
&gt;&gt; syntax to use near &#39;LOCK TABLES `videometadata` WRITE&#39; at line 3<br>
&gt;&gt;<br>
&gt;&gt; With the code in question being:<br>
&gt;&gt;<br>
&gt;&gt; -- Table structure for table `videometadata`<br>
&gt;&gt; DROP TABLE IF EXISTS `videometadata`;<br>
&gt;&gt; CREATE TABLE `videometadata` (<br>
&gt;&gt; -- Dumping data for table `videometadata`<br>
&gt;&gt; LOCK TABLES `videometadata` WRITE;<br>
&gt;&gt; /*!40000 ALTER TABLE `videometadata` DISABLE KEYS */;<br>
&gt;&gt; INSERT INTO `videometadata` (`intid`, [...]<br>
&gt;&gt;<br>
&gt;&gt; Does anyone know what the issue with that is?<br>
&gt;<br>
&gt; Yeah, you&#39;re completely missing the table definition. Mine looks like this<br>
&gt; (but don&#39;t go by it because I&#39;m running trunk and might have a different<br>
&gt; schema for this table):<br>
<br>
<br>
</div>the OP said he grepped the whole database backup (mythtv_backup.sql)<br>
for just the parts that say &#39;Insert into videometadata&#39; - in doing so<br>
he missed the table definition. If he looks at his mythtv_backup.sql<br>
file he should find the table definition relevant for his version.<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br>Yes, I was completely missing the table definition.&nbsp; I found the relevant part of the script in mythtv_backup.sql and I was able to recreate a blank table.&nbsp; However, when I tried to run imdb-bulk-update.pl it failed without an error.&nbsp; Also, I am no longer able to see a video icon in mythweb, and the video link gives me &quot;An unknown module was specified&quot;... perhaps I need to restart mythbackend?<br>
<br>Ugh...&nbsp; I&#39;m at work now, but I&#39;ll have to look more into it when I get home.&nbsp; Don&#39;t mess with things when you are hungover ;)<br>