Import sql file using mysql CLI in ubuntu

Open terminal by pressing alt+ctrl T

mysql -u root -p
Enter password
mysql>use [database-name]
mysql>source [path to your .sql file]

 

0/5