Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am currently on a Ubuntu machine (IP is I have databases here I want to export all these databases to another machine in my network

I used following command

mysqldump --all-databases -u root -p my_passwd | ssh hp@ /usr/bin/mysql -u root -p passwd
hp@'s password: 
Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

What is the error in above way?

share|improve this question
You need to remove the space after -p or change to the more intuitive --password=the_password in both places where you used -p. –  Michael - sqlbot Oct 20 '13 at 23:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.