title: mysqldump not importing all databases
body: <p>I need to import a very large backup pf my database.</p>
  
  <p>I'm using this command for importing all databases:</p>
  
  <pre><code>mysqldump -u root -p --all-databases &lt; localhost.sql
  </code></pre>
  
  <p>It works, but only 5 db of 6 were imported.</p>
  
  <p>The file has 700'000 lines so is very difficoult select only the last db i care about.</p>
  
  <p>Any advices? Thank you!</p>
  
  <p>EDIT:</p>
  
  <p>Using</p>
  
  <pre><code>mysqldump -u root -p joomla &lt; localhost.sql
  </code></pre>
  
  <p>got an error</p>
  
  <pre><code>    '[root@tp lota]# mysqldump -u root -p joomla &lt; localhost.sql
  Enter password: 
  -- MySQL dump 10.13  Distrib 5.1.69, for redhat-linux-gnu (x86_64)
  --
  -- Host: localhost    Database: joomla
  -- ------------------------------------------------------
  -- Server version   5.1.69
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  mysqldump: Got error: 1049: Unknown database 'joomla' when selecting the database'
  </code></pre>
  
  <p>EDIT #2: the problem was database information_schema inside the dump. After deleting it all went ok. Thank you for your answers.</p>