<p>Did you try clearing your cache before dumping the DB?</p>
<div class="gmail_quote">On Sep 9, 2011 9:58 PM, &quot;Iain Wiseman&quot; &lt;<a href="mailto:iwiseman@bibble.co.nz">iwiseman@bibble.co.nz</a>&gt; wrote:<br type="attribution">&gt; Hi,<br>&gt; <br>&gt; I have done this before but I seem to be struggling to get this to work.<br>
&gt; <br>&gt; My approach is<br>&gt; - export DB<br>&gt; - cp directory<br>&gt; - search for old machine <a href="http://www.foo.com">www.foo.com</a> and replace with new site<br>&gt; - tar directory up<br>&gt; - copy both to new machine<br>
&gt; - untar directory on new machine<br>&gt; - create DB on new machine<br>&gt; - create user on new machine<br>&gt; - import mysql -u root -p &lt;DB&gt; &lt;dump.sql<br>&gt; <br>&gt; However have the error<br>&gt; <br>&gt; /Notice/: unserialize(): Error at offset 27410 of 57720 bytes in <br>
&gt; /DrupalDatabaseCache-&gt;prepareItem()/ (line /401/ of <br>&gt; //home/user1/drupal-7.0/includes/cache.inc/).<br>&gt; <br>&gt; ///PDOException/: SQLSTATE[42000]: Syntax error or access violation: <br>&gt; 1064 You have an error in your SQL syntax; check the manual that <br>
&gt; corresponds to your MySQL server version for the right syntax to use <br>&gt; near &#39;) ORDER BY fit DESC LIMIT 0, 1&#39; at line 1: SELECT * FROM <br>&gt; {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) <br>
&gt; in /menu_get_item()/ (line /443/ of <br>&gt; //home/user1/pmi/drupal-7.0/includes/menu.inc/).<br>&gt; <br>&gt; Similar to <a href="http://drupal.org/node/1114304">http://drupal.org/node/1114304</a><br>&gt; <br>&gt; Any ideas.<br>
&gt; Thanks,<br>&gt; Iain<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br></div>