How to import a generated MySQL file ‘.sql’ via the CLI (Command Line Interface)

7 sec read

  • Open a new Terminal Window if not already in Command Line
  • Type in the command below
    • Linux
      mysql -uusername -ppassword databasename < import.sql
    • Windows
      mysql -u username -p databasename < import.sql

Last Updated On March 23, 2018

Leave a Reply

Notify of