I tried to backup the database from my mysql server.
I am using MYSQL 5.5.
I used the following Command to backup the database.
$
$ mysqldump -uroot -padmin project > project.sql
Unable to comment on the answer by @Thanga so posting it separately.
There should be a space between -u and root. Likewise for -p and admin. So the command would look like:
mysqldump -u root -p admin project