03.06.2016 - In a more complex example where you must know the username and password to dump the database this command will work: mysqldump .