WSO2 APIM 3.0.0 MB STORE 数据库 [英] WSO2 APIM 3.0.0 MB STORE database

查看:28
本文介绍了WSO2 APIM 3.0.0 MB STORE 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用流量管理器配置文件安装 WSO2 3.0.0 APIM 实例.是否可以通过 deployment.toml 文件将 MB_STORE 数据源配置为 mysql 配置?master-datasources.xml 在启动时总是被 MB_STORE 数据源的默认 h2 数据库覆盖.

I try to install a WSO2 3.0.0 APIM instance with the traffic-manager profile. Is it possible to configure the MB_STORE datasource to a mysql configuration through the deployment.toml file ? The master-datasources.xml is always overrided at startup with the default h2 database for the MB_STORE datasource.

推荐答案

您可以通过在 <AM-home>/repository/conf/deployment.toml 中添加以下配置来配置 MB 源数据源:

You can configure the MB source datasource by adding following configurations in <AM-home>/repository/conf/deployment.toml:

[[datasource]]
id = "WSO2_MB_STORE_DB"
url = "jdbc:mysql://<ip-address>:<port>/mb_store"
username = "username"
password = "password"
driver = "com.mysql.jdbc.Driver"
validationQuery = "SELECT 1"
pool_options.maxActive = 50
pool_options.maxWait = 60000
pool_options.validationInterval = 30000
pool_options.defaultAutoCommit = false

配置Carbon DB/AM_DB,添加以下配置就足够了,因为它们是预先配置的,对于其他数据库,您需要添加所有上述配置.

To configure the Carbon DB / AM_DB, adding following configurations is sufficient as they are pre-configured, for other databases, you need to add all the above mentioned configurations.

[database.apim_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/am_db"
username = "username"
password = "password"

[database.shared_db]
type = "mysql"
url = "jdbc:mysql://localhost:3306/reg_db"
username = "username"
password = "password"

这篇关于WSO2 APIM 3.0.0 MB STORE 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆