Create databases with Ant tasks
If we did not create the databases manually, we can instead use Ant tasks to create DBs.
- Review the sample configuration files
- Copy the Ant file corresponding to your database. File name 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_HOME/shortcuts
ant -f create-database-database.xml databasesIf the databases are created, and we must create only the database tables...
- Review the sample configuration files
- Copy the Ant file corresponding to your 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 the databases.
cd MF_HOME/shortcuts
ant -f configure-appServer-database.xml databases
See also
Parent topic: Use Ant tasks to deploy the project WAR file