Note to writers: Add this content at the end of the page if any of the additional databases is relevant to your product. Changing the identity/storage/product-specific databasesThe topics above show how to change the WSO2_CARBON_DB , which is used to store registry and user manager information. If you changed the product-specific database thatcome by default or set up a separate database for identity or storage related data, the instructions are the same. In summary: Add a newdatasourceconfiguration to the following files for each of the separate databases that you need to create. For the identity database | Add it to the <PRODUCT_HOME>/repository/conf/datasources/ <check the correct path and add file name (something like master-datasources.xml)> | For the storage database | Add it to the <PRODUCT_HOME>/repository/conf/datasources/<check the correct path and add file name (something like master-datasources.xml)> | For the product-specific database | Add it to the <PRODUCT_HOME>/repository/conf/<check the correct path and add file name (something like api-manager.xml)> |
Create the database tables using the following scripts: For the identity database | Use <PRODUCT_HOME>/dbscripts/identity/<check the correct path and add file name (something like mysql.sql)> | For the storage database | Use <PRODUCT_HOME>/dbscripts/storage/<check the correct path and add file name (something like /mysql/resoucre.sql)> | For the product-specific database | Use <PRODUCT_HOME>/dbscripts/<check the correct path and add file name (something like /apimgt/mysql.sql)> | Update the following configurations, with the defined datasourcename of the corresponding database configuration you added to the <PRODUCT_HOME>/repository/conf/datasources/master-datasources.xml file. If you are setting up a separate database to store identity relateddata, update the following configurations in the <PRODUCT_HOME>/repository/conf/identity.xml file. Code Block |
---|
| <JDBCPersistenceManager>
<DataSource>
<!-- Include a data source name (jndiConfigName) from the set of datasources defined in master-datasources.xml -->
<Name>jdbc/WSO2CarbonDB</Name>
</DataSource>
</JDBCPersistenceManager> |
Note to writers: For step 3, add content on the XML files which include references on any of the additional databases and require edits that are relevant to your product similar to the given example.
|