I thank you both for your reply..
I am totally new to databases.
I actually have a dump sql file (filename.sql) with me, which I am trying to import it in mysql database. I have found the following command for it.
mysql < filename.sql
The goal is, after importing, i would be able to see the tables and I somehow want it all in the form of excel sheet or csv format. And so, as Ronan suggested, I would then try using "mysql --html" and run the select statements (i still need to try and figure out after that, how it works though).
But for now, the above command to import the dump file shows me an error all the time. It says I need to check the syntax with every version of the mysql. I am using 5.5.19.0, and refering to its manual as well and the above command is as per that. I still dont understand why do I get errors. Or sometimes it says, "database file not found".
Or am i missing something?
I apologize if this seems to be a very small and silly query? But i am just stuck with it.