title: How to export and import the databases in MySql.
body: <p>phpMyAdmin shows an error during importing the exported .sql file. It gives message like this
  SQL query:</p>
  
  <p>--</p>
  
  <h2>-- Database: <code>mcadatabase</code></h2>
  
  <hr>
  
  <p>--</p>
  
  <h2>-- Table structure for table <code>trick</code></h2>
  
  <p>CREATE TABLE IF NOT EXISTS <code>trick</code> (
  <code>id</code> int(5) unsigned NOT NULL,
    <code>question</code> varchar(20000) NOT NULL,
    <code>option1</code> varchar(200) NOT NULL,
    <code>option2</code> varchar(200) NOT NULL,
    <code>option3</code> varchar(200) NOT NULL,
    <code>option4Right</code> varchar(200) NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  MySQL said: Documentation</p>
  
  <h1>1046 - No database selected</h1>