Update my database credentials
With package installation (Debian, Ubuntu, RPM)
Open /etc/passbolt/passbolt.php file and edit the Datasources block:
(...) // Database configuration. 'Datasources' => [ 'default' => [ 'host' => '127.0.0.1', 'port' => '3306', 'username' => 'passbolt', 'password' => 'password', 'database' => 'passboltdb', ], ], (...)
Save and quit.
From source installation
It is the same block to edit than the package installation, but passbolt configuration file is located on /var/www/passbolt/config/passbolt.php
With docker installation
Database credentials are set in environment variables and you need to edit them for each container:
For mariadb container:
MYSQL_DATABASE: "passboltdb" MYSQL_USER: "passbolt" MYSQL_PASSWORD: "very-strong-password"
For passbolt container:
DATASOURCES_DEFAULT_DATABASE: "passboltdb" DATASOURCES_DEFAULT_USERNAME: "passbolt" DATASOURCES_DEFAULT_PASSWORD: "very-strong-password"
This article was last updated on December 16th, 2021.