import a sql file on the MySQL command line

Because I had to figure this out the hard way, Here’s a reminder for myself and others on the best way to accomplish this. I had a 21MB file.
Assuming you already have your dumped sql file.

  1. remember where you saved the file
  2. log into mysql command line client
  3. run this: source /full/path/to/your/file.sql
  4. bask in glory

Posted via email from Mark McAulay | Comment »