WSO2 API 管理器 - 从 H2 迁移到 MySQL:缺少一个脚本

WSO2 API Manager - migration from H2 to MySQL : one script is missing

在wso2am/repository/conf/datasources/*.xml中,我可以看到5个数据源:

    <name>WSO2_CARBON_DB</name>
    <name>WSO2AM_DB</name>
    <name>WSO2AM_STATS_DB</name>
    <name>WSO2_MB_STORE_DB</name>

    <name>WSO2_METRICS_DB</name>

但在 wso2am/dbscripts 中,我只能找到 4 个数据库的 4 个脚本(没有 WSO2AM_STATS_DB 的脚本)。

WSO2AM_DB 是否应该在生产中保留 H2 数据库?还是应该指向现有数据库?

您不需要在 WSO2AM_STATS_DB 中手动创建表。只需创建一个数据库就足够了。表由分析脚本自动创建。

Table creation of the statistics database is handled by the Analytics scripts when you configure APIM Analytics, so you will create the statistics database in this step but will not specify a source script.

参考:https://docs.wso2.com/display/CLUSTER44x/Clustering+API+Manager+2.0.0