I have dumped my database with the following command:
mysqldump -uuser -ppassword db_name > file
then I completely removed my database:
I tried dump of my database with the following commands:
#mysqldump -u -p DB_name > .sql
Then login into the DB:
#mysql -u -p
>show databases;
>drop database ;
Then create a new database:
#create database ;
DB_name is userdefined name we can have any name.
and then restore the DB with the following command:
#mysql -u -p DB_name < .sql