+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Script to configure databases | prepareserverdbs.sh script

This script configures MobileFirst Server databases (administration, configuration, runtime and push). You must run this script before creating the Liberty for Java™ Cloud Foundry application.

Table 1. Mandatory command-line arguments
Command-line argument Description
[-t |--type ] DB_TYPE Bluemix® dashDB™ service (with Bluemix service plan of Enterprise Transactional)

Usage example:

Table 2. Optional command-line arguments
Command-line argument Description
[-h |--host ] DB2_HOST Hostname or IP address where the database is set up. Required if DB_TYPE is DB2.
[-d |--database ] DB2_DATABASE Name of the database. Required if DB_TYPE is DB2.
[-r |--port ] DB2_PORT Port number for DB2. Required if DB_TYPE is DB2.
[-u |--username ] DB2_USERNAME Username for the DB2 user. Required if DB_TYPE is DB2.
[-pw |--password ] DB2_PASSWORD Password for the DB2 user. Required if DB_TYPE is DB2.
[-adl |--admindb ] ADMIN_DB_SRV_NAME Bluemix dashDB service (with Bluemix service plan of Enterprise Transactional)
[-as |--adminschema ] ADMIN_SCHEMA_NAME Database schema name for administration service.

Note: Defaults to MFPDATA

[-rd |--runtimedb ] RUNTIME_DB_SRV_NAME Bluemix database service instance name for storing runtime data.

Note: Defaults to the same service as given for admin data.

[-p |--push ] ENABLE_PUSH Enable configuring database for push service.

Note: Accepted values are Y (default) or N.

[-pd |--pushdb ] PUSH_DB_SRV_NAME Bluemix database service instance name for storing push data.

Note: Defaults to the same service as given for runtime data.

[-ps |--pushschema ] PUSH_SCHEMA_NAME Database schema name for push service.

Note: Defaults to the runtime schema name.

Parent topic: Script overview and usage