For instructions on configuring a MySQL cluster (NDB), see Deploying WSO2 Products on MySQL Cluster, which is published in the WSO2 library.
This page explains how to point WSO2_CARBON_DB into a MySQL cluster (NDB).
After creating the database in a MySQL cluster, modify the default datasource configuration in the
<GREG_HOME>/repository/conf/datasources/master-datasources.xmlfile. Replace the URL, username, password, driver class name and any other values with your custom values.
- Copy the MySQL jdbc driver library into
- To create the database tables related to the user store and registry, execute the cluster script located inside the
- If you prefer to create database tables during server startup, replace the content of the
<GREG_HOME>/dbscripts/mysql.sqlfile with the content of the
<GREG_HOME>/dbscripts/mysql_cluster.sqlfile and start the GREG instance with
-Dsetup vm argument.