Table of Contents

MibDatabaseConfig

Introduction

Configuration used to determine the parameters for connecting to the database.

Keys

Type -> Type of the database for this configuration section sql2000,sql2005,sql2008,sql2012,sql2014,sqlazure,sqlite,mysql,mariadb,postgresql
ConnectionString -> Connection string to be used for SQL server communication
DisableDatabaseAccessLog -> Enables or disable database access logging false
Database
Server
Username
Password
Name -> Informs the application name to the connection string SqlServer
MinPoolSize -> Minimum connection pool size 0
MaxPoolSize -> Maximum connection pool size 0
SqliteSyncronous -> Used to assemble the connection string for SQLite
ConnectionTimeout -> Timeout for the SQL connection 0
CommandTimeout -> Timeout to be used when running SQL server commands 0
FailoverPartner -> Secondary database link
TrustedConnection -> Use integrated security instead of user/password authentication false
Encrypt -> Used to assemble the connection string for SqlServer false
EnableMars -> (MIB 7.1+) Turns MARS (MultipleActiveResultSets) on for this SQL Server connection. On 7.1 the Data API (mib.api) connects without MARS by default — it serves up to 75% more read requests per second under load — while every other service keeps MARS on; set it to override either default for one database alias, e.g. MIBDATABASECONFIG_<ALIAS>_ENABLEMARS=true (MEDIAIBOX-12382). Before 7.1 MARS was always on. true (false in mib.api)
ForceAnsiString -> Force all string parameters to ANSI type false
SqliteLibrary -> Forces a specific version of the Sqlite Library
MySqlLibrary -> Forces a specific version of the MySql Library
PostgreSqllLibrary -> Forces a specific version of the PostgreSQL Library

Example

MIBDATABASECONFIG_DEFAULT_TYPE=sql2005
MIBDATABASECONFIG_DEFAULT_SERVER=agilecontent.com
MIBDATABASECONFIG_DEFAULT_DATABASE=content
MIBDATABASECONFIG_DEFAULT_USERNAME=username
MIBDATABASECONFIG_DEFAULT_PASSWORD=secret