Help Search

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' => '',
            '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_PASSWORD: "very-strong-password"

Last updated

This article was last updated on December 16th, 2021.

Are you experiencing issues with Passbolt Pro Edition?

Contact Pro support

or ask the community

🍪   Do you accept cookies for statistical purposes? (Read more) Accept No thanks!