+

Search Tips   |   Advanced Search

Runtime database setup for development mode

MPF uses defaults to access the runtime database, which kind is WRKLGHT by default. When we work in a development environment and use JDBC to connect to a database, we can use a set of property keys to change the settings.

This method of declaring data sources is deprecated in a production environment and is only suitable when working in a development environment and using JDBC for database connections. To configure data sources when working in a production environment, see Create the databases manually.

Property Key Property Value
wl.db.url JDBC path to the runtime database.
wl.db.username Runtime database user name.

Default: Worklight

wl.db.password Runtime database password.

Default: Worklight

wl.db.driver The class that implements a JDBC driver for each vendor. For example:

MySQL: com.mysql.jdbc.Driver

Oracle: oracle.jdbc.OracleDriver

DB2 : com.ibm.db2.jcc.DB2Driver

Derby: org.apache.derby.jdbc.EmbeddedDriver

wl.reports.db.url(*) JDBC path to the reports database

Default: refers to runtime database

wl.reports.db.username(*) Reports database user name.

Default: refers to Worklight database

wl.reports.db.password(*) Reports database password

Default: refers to runtime database

(*) By default all report mechanisms in MobileFirst Server use a single reports database. The reports database is set to be the same as the runtime database. For more information about how this default setting can be changed, see Use raw data reports.


Parent topic: Application server-side configuration parameters