I am wondering how can I generate a dumped database so that it can be restored without requiring the original database username and password?
Ideally I'd like to know the pg_dumpall as well as mysqldump commands to do so.
This can be useful in different circumstances, for example, when one wants to dump a database to be released to the public.