How to export mysql database from command in windows

{ // deep_execution_view
ANKIT AGRAWAL |

(1)got to your bin directory from command prompt
cd C:xamppmysqlbin

(2)Now use following command
mysqldump -u username -p yourdbname > mysqlfilename.sql

}