Note | ||
---|---|---|
| ||
Please note that this content is currently under review! |
...
- Disconnect all the subscribers and publishers for WSO2 MB 3.2.0.
- Shut down the server.
- If you are using an Oracle database, run the migration script to update the database:
- Open a terminal and navigate to the
<MB_HOME>/dbscripts/mb-store/
migration-3.1.0_to_3.2.0
directory. - Execute the following command:
- On Windows:
oracle-mb.sql
- On Linux:
sh oracle-mb.sql
- On Windows:
- Open a terminal and navigate to the
- Download and run the migration tool:
- Download the migration tool.
Unzip the
org.wso2.mb.migration.tool.zip
file. The directory structure of the unzipped folder is as follows:Panel TOOL_HOME
|-- lib <folder>
|-- config.properties <file>
|-- tool.sh <file>
|-- README.txt <file>
|-- org.wso2.carbon.mb.migration.tool.jar- Download the relevant database connector and copy it to the
lib
directory in the above folder structure. For example, if you are upgrading your MySQL databases, you can download the MySQL connector JAR from http://dev.mysql.com/downloads/connector/j/5.1.html and copy it to thelib
directory. - Update the
Open the config.properties file
with the database parameters for your MB database. You can find the current configurationsfrom the org.wso2.mb.migration.tool.zip file that you downloaded in step 4 above and update the database connection details shown below.
Code Block #Configurations for the database dburl= driverclassname= dbuser= dbpassword=
The parameter in the above file are as follows:
- dburl: The URL for the database. For example, jdbc:mysql://localhost/wso2_mb
- driverclassname:The database driver class. For example, com.mysql.jdbc.Driver for MySQL.
- dbuser: The user name for connecting to the database.
- dbpassword: The password for connecting to the database.
- Update the datasource connection for the MB database in the
master-datasources.xml
file that is file (stored in the<MB_HOME_320>/repository/conf/datasources
directory). Run the migration tool:
If you are on a Linux environment, open a command prompt and execute the following command:
tool.sh
.- If you are on a non-Linux environment, execute
org.wso2.carbon.mb.migration.tool.jar
manually.
- Start WSO2 MB 3.2.0.
- Reconnect all the publishers and subscribers to MB 3.2.0.
...