title: MySQL: How to import a sql dump.. inside mysql command line?
body: <p>I often keep a shell open to a remote server where I'm spending a lot of time in mysql. Exiting mysql and logging back in seems like a pain I shouldn't have to deal with if I just want to run a sql file. </p>
  
  <p><strong>When I'm running MySql from the command line, how can I run a dump file?</strong></p>
  
  <p>Right now, I'm using the same approach <a href="https://stackoverflow.com/questions/17666249/how-to-import-a-sql-file-using-the-command-line-in-mysql#17666279">outlined in this post</a>.</p>