...
- Run the
ij
tool located in the<DERBY_HOME>/bin/
directory as illustrated below:
- Create the database and connect to it using the following command inside the
ij
prompt:connect 'jdbc:derby:repository/database/WSO2CARBON_DB;create=true';
Info Replace the database file path in the above command with the full path to your database.
- Exit from the
ij
tool by typing theexit
command.exit;
- Log in to the
ij
tool with the username and password that you set inregistry.xml
anduser-mgt.xml
:
connect 'jdbc:derby:repository/database/WSO2CARBON_DB' user 'regadmin' password 'regadmin';
Use the scripts given in the following locations to create the database tables:
To create tables for the registry and user manager database (
WSO2CARBON_DB
), run the below command:Code Block language powershell run '<PRODUCT_HOME>/dbscripts/derby.sql';
Info Now the product is running using the embedded Apache Derby database.
- Restart the server.
...