Select Page

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

  • 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

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.