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.
BY Best Interview Question ON 20 Sep 2022