WSO2 APIM 3.0.0 MB STORE 数据库

编程入门 行业动态 更新时间:2024-10-28 11:30:52
本文介绍了WSO2 APIM 3.0.0 MB STORE 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我尝试使用流量管理器配置文件安装 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-24 21:53:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1072506.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库   APIM   STORE   MB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!