Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each Carbon-based product uses a database to store information such as user management details and registry data. All nodes in the cluster must use one central database for config and governance registry mounts.

  1. Download and install MySQL server.
  2. Download the MySQL jdbc driver.
  3. Define the host name for configuring permissions for the new database by opening the /etc/hosts file and adding the following line:
    <MYSQL-DB-SERVER-IP> carbondb.mysql-wso2.com
  4. Open a terminal/command window and log in to MySQL with the following command:
    mysql -u username -p 
  5. When prompted, specify the password, and then create the database with the following command:
    mysql> create database carbondb;
  6. Grant permission to access the created database with the following command:
    mysql> grant all on carbondb.* TO username@carbondb.mysql-wso2.com identified by "password"; 
  7. Unzip the downloaded MySQL driver zipped archive and copy the MySQL JDBC driver JAR (mysql-connector-java-x.x.xx-bin.jar) to the <ESB_HOME>/repository/component/lib directory for each worker and manager node.

...