I had successfully imported a database using command line, but now my pain area is how to import a single table with its data to the existing database using command line.
To import a table into database, if table is already exist then add this line in your sql file DROP TABLE IF EXIST 'table_name' and run command mysql -u username -p database_name < import_sql_file.sql.
Please verify the sql file path before execute the command.