Page History
...
- Stop the current server.
Copy the data from the production database to the staging database you created. This staging database becomes the new database for your new version of WSO2 AS.
Select the relevant script for the upgrade from here and run it on the staging database. The script you use will depend on the type of database you are using, for . For instance, if your database is MySQL, you need to run the
execute mysql-migration.sql
command in MySQL. Running this script will ensure that the database is upgraded with the additional tables and schemas which are required for the new AS version.Info There are three migration scripts available:
migration-service-provider.sql
,migration-identity.sql
andmigration.sql
. However, note that only themigration.sql
script is required to be executed for this upgrade.Download the new AS version and connect it to your staging database.
...
- Configure the following files for the new production server.:
- Go to the
<AS_HOME>/repository/conf/datasources/
directory and update themaster-datasources.xml
file . See configuring master-datasources.xml. - Go to the
<AS
_HOME>/repository/conf/
directory and update datasource references in theuser-mgt.xml
andregistry.xml files
.
See configuring user-mgt.xml and configuring registry.xml.
- Go to the
- Copy the following directories from the old database to the staging database.
- To migrate the super tenant settings, copy the
<AS_HOME>/repository/
deployment/server/
directory. - If multitenancy is used, copy the
<AS_HOME>/repository/tenants/
directory.
- To migrate the super tenant settings, copy the
Perform any configurations required for the server, e.g., external user stores, clustering, caching, mounting.
Note Note that configurations should not be copied directly between servers.
- Start the server.
...