Skip to main content

Database

Settings Management

Please note settings are imported from environment variables only at initial boot and should be managed from the settings tab on the admin panel thereafter. Please refer to the Setup > Settings page for more details.

NameValue
DATABASE_TYPEThis specified the type of database connection to use. You can choose between sqlite, mysql, mariadb, postgres, mssql.

Default: sqlite
DATABASE_CONNECTION_STRINGSpecifies the connection string to be used for a mysql database connection.

Default: Data Source=./config/memtly.db
DATABASE_SYNC_FROM_CONFIGShould settings be wiped at startup to always reflect the environment variables

Default: false
Connection String Format (MariaDB)

Server={{ IP / DNS }};Port={{ Likely 3306 or 3307 }};Database={{ Database Name }};User={{ Username }};Password={{ Password }};

Connection String Format (MySQL)

Server={{ IP / DNS }};Port={{ Likely 3306 or 3307 }};Database={{ Database Name }};User={{ Username }};Password={{ Password }};

Connection String Format (SQLite)

Data Source=./config/memtly.db

Connection String Format (Postgres)

Host={{ IP / DNS }};Port={{ Likely 5432 }};Database={{ Database Name }};Username={{ Username }};Password={{ Password }};

Connection String Format (MSSQL)

Server={{ IP / DNS }},{{ Likely 1433 }};Database={{ Database Name }};User={{ Username }};Password={{ Password }};TrustServerCertificate=True;