I followed the installation instructions provided for a docker install with docker compose. The used compose file is the one that is mentioned on the guide: Passbolt Help | Docker passbolt installation
But now I want to try to use mysqldump to do a db backup, but I’m failing because it always requests a password and I have no idea which one to provide.
I notice that the yaml file has following env setting: MYSQL_RANDOM_ROOT_PASSWORD=true
Does this mean, I can’t know the password now, because it was auto generated at creation?
@max Would you mind explaining from a security standpoint how the passbolt mysql_export command works in this scenario? How does it source a password, or why is one not needed? I don’t believe this info is found elsewhere in the forum. Thanks
As explained in the doc mysql root account is not needed to backup passbolt database.
The passbolt mysql_export command uses the dedicated mysql passbolt user.
Will prompt for a password! What would be the root one and I do no longer have the logs from the initialisation so I do not have the random generated one at hand.
I really appreciate you trying to help here.
But your sample is what I have in my windows…. So as username I indeed do NOT use root but the one defined in my docker compose. But still the prompt will give access denied and prompt for a password.
Are you running the mysqldump command from passbolt container or database container ?
From passbolt container, the command provided by @max should work.
From database container, mine should work, if not, you can try to add the -h db parameter to mysqldump command, where db is the database container hostname (the default in docker-compose file).