Create the database for MobileFirst Server administration with Ant tasks
If we did not create the databases manually, complete the following steps...
- To start the Ant task from a computer on which MobileFirst Server is not installed, copy the file...
MF_INSTALL/WorklightServer/worklight-ant-deployer.jar
...to that computer.
- Review the sample configuration files
- Copy the Ant file that corresponds to the database.
The files for creating a database are named after the following pattern:
create-database-<database>.xml
- Edit the Ant file and replace the placeholder values for the properties at the top of the file.
- Create the databases.
cd MF_INSTALL/shortcuts
./ant -f create-database-database.xml admdatabases
If the databases are created, and we must create only the database tables.
- Edit the Ant script we will use later to configure the databases.
- Review the sample configuration files
- Copy the Ant file that corresponds to the database. The files for configuring an existing database are named after this pattern:
configure-appServer-database.xml
- Edit the Ant file and replace the placeholder values for the properties at the top of the file.
- Create databases tables.
cd MF_INSTALL/shortcuts
ant -f configure-appServer-database.xml admdatabases
What to do next
See also:
Parent topic: Use Ant tasks to install MobileFirst Server administration