Password syntax is invalid. You need to write the password immediately after -p without a space. Therefore, the password is interpreted as the database name.
Instead, write:
C:\>mysqldump -h <server ip> -u <user-id> -p<password> <db name> > E:\dumpfilename.sql
Note that there is no space after -p . An example would be -phunter2 , where the password is "hunter2".
source share