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

No Comments
  • 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

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 23, 2018

Related Articles

No results found

Leave a Reply

Notify of
Copy link