If you are using XAMPP SERVER on your local machine, follow the below steps to import the table inside your database
Create a database where you want to import those tables using cmd (either through PhpMyAdmin or using the command line)
Go to the command line by going to Start -> Run and typing in cmd.
Change the directory to the MySQL bin directory. It will be like if you have used C drive to install this application
C:\Windows\System32\cmd.exe
OR
Go to your MySQL bin directory inside XAMPP/WAMP/LAMP & there in the address bar just type cmd and press ENTER
In cmd the directory will be displayed like this C:\xampp\mysql\bin> Then type the below command:
mysql -u {user_name} -p {user_password} {database_name} < file_path.sql
OR
If you do not have set the password then use below command:
mysql -u {user_name} {database_name} < file_path.sql
ANOTHER METHOD: Follow up to above point 2 & followed by given steps below:
Step 01:
mysql -u {user_name} -p {user_password}
example: C:\xampp\mysql\bin>mysql -u root -p password
Step 02:
use {database_name}
example: MariaDB [(none)]> use database_name
Step 03:
Provide the source from where the file will be imported
source file_path.sql
example: MariaDB [database_name]> source sql_file.sql
The output will be as attached image:
Hope it will work, Enjoy!!