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

Leave a Comment

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