Can anybody tell me that how to get DB backup script from Remote Server in MySQL using command-line utility?
I’m using a command as follows, but not working:
C:\>mysqldump -h <server ip> -u <user-id> -p <password> <db name> >
E:\dumpfilename.sql
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The syntax for the password is wrong. You need to write the password immediately after the
-p, without a space. That’s why the password is interpreted as the database name.Write this instead:
Notice how there is no space after
-p. An example would be-phunter2, where the password is “hunter2”.