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.
if you already have the desired table on your database, first delete it and then run the command below:
mysql -u username -p databasename < yourtable.sql