title: Mysql 5.7 .idb recover
body: <p>I have to copy a database from another server (MySQL 5.7), and I have only .frm and .idb files. </p>
  
  <p>I have done this several times, on MySQL 5.6, with those steps:</p>
  
  <ol>
  <li>Create table structure</li>
  <li>ALTER TABLE table_name DISCARD TABLESPACE</li>
  <li>Copy .idb file in database folder</li>
  <li>ALTER TABLE table_name IMPORT TABLESPACE</li>
  </ol>
  
  <p>Now, when I try to import tablespace (and run ALTER TABLE table_Name IMPORT TABLESPACE) the server shuts down. I checked error.log, but I do not see errors. </p>
  
  <p>If I start againg the server and try to import tablespaces, I receive an error
  <code>#1813 - Tablespace table_name exists.</code></p>
  
  <p>Any suggestions?</p>