Loading…

How do I import database through command line?

MySQL -u username -p database_name < file.sql
Here username is your database username like "root," database_name is your database name, file.sql is your SQL file name with complete path.

Suggest An Answer

No suggestions avaliable!

Latest post from Mysql Interview Questions

Ask Question