mysqldump: got error: 1045: access denied for user code example
Example: mysqldump: got error: 1045: access denied for user
This worked for me
mysqldump -u root -p mydbscheme > mydbscheme_dump.sql
after issuing the command it asks for a password:
Enter password:
entering the password will make the dump file