title: ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device
body: <p>I have Mamp Pro. Im trying to import a databse via the command line as its too large for PHPMyAdmin using these instructions: <a href="http://nickhardeman.com/308/export-import-large-database-using-mamp-with-terminal/" rel="nofollow">http://nickhardeman.com/308/export-import-large-database-using-mamp-with-terminal/</a></p>
  
  <p>When I enter the following im prompted for my password: </p>
  
  <pre><code>/applications/MAMP/library/bin/mysql -u root -p DBNAME.sql &lt; /Applications/MAMP/htdocs/FOLDERNAME 
  </code></pre>
  
  <p>However when I enter it I get this message:</p>
  
  <pre><code>ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.
  </code></pre>