mysqldump: Got error: 1045: Access denied for user 'username'@'localhost' (using password: NO) when trying to connect 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