You can do this from 1) the command line, 2)for smaller from PHPMYadmin or 3) from Workbench, e.t.c.
How import MySQL database from the command line?
- Open the MySQL command line.
- Type the path of your MySQL bin directory and press Enter.
- Paste your SQL file inside the bin folder of the MySQL server.
- Create a database in MySQL.
- Use that particular database where you want to import the SQL file.
- Type source databasefilename.sql and Enter.
- Your SQL file upload successfully.