Now supports MySQL(MariaDB) backend.
Set to mysql
switch to MySQL(MariaDB) database.
Default: sqlite
MySQL(MariaDB) host, required.
MySQL(MariaDB) port.
Default: 3306
MySQL(MariaDB) database name.
Default: vaultwarden
MySQL(MariaDB) username.
Default: vaultwarden
MySQL(MariaDB) password, required.
Enable SSL for connection.
No default value is set; it uses the default provided by mariadb-dump
, and starting from version 10.11
, the default is TRUE
.
Verify server's certificate.
No default value is set; it uses the default provided by mariadb-dump
, and starting from version 11.4
, the default is TRUE
.
If you encounter any TLS-related connection errors, you can try disabling it by setting values such as 0
or FALSE
.
The path to the CA certificate for TLS connection (optional).
The path to the client certificate for TLS connection (optional).
The path to the client key for TLS connection (optional).
Specify the above environment variables to switch to the MySQL(MariaDB) database.
When restoring, also specify the above environment variables to switch to the MySQL(MariaDB) database.
- Ensure that the database is accessible.
Perhaps you will use the docker-compose up -d [services name]
command to start the database separately.
- Verify that the
MYSQL_HOST
you are using is accessible to.
If your database is running in docker-compose, you need to find the corresponding network name via docker network ls
and add --network=[name]
to the restore command to specify the network name.
- Restore and restart the container.