How to import MySQL Database?

Don\’t forget to create the database:

MYSQL
>CREATE DATABASE db-name;
> database_name < file.sql

If database already exist

mysql -u username -p database_name < file.sql
Scroll to Top