MYSQL Backup using mysqldump
Specifying username and password
If you need to specify the password on the command line (e.g. in a script), you can add it after the -p option without a space:
If you password contains spaces or special characters, remember to use escaping depending on your shell / system.
Optionally the extended form is:
(Explicity specifying the password on the commandline is Not Recommended due to security concerns.)