jdbc - 我正在尝试使用 wso2 中的 MySQL 5.9.0 更改我的注册表数据库并按照步骤操作,但它没有反射(reflect)在控制台中?

标签 jdbc wso2 wso2-data-services-server wso2-identity-server

我遵循了以下文档- https://is.docs.wso2.com/en/5.9.0/setup/changing-to-mysql/

我还尝试过仅针对上述用例更改 LDAP 用户存储,是否有必要这样做,并且哪一个最适合使用 MySQL 的用户存储 LDAP 或 JDBC https://is.docs.wso2.com/en/5.9.0/setup/configuring-a-jdbc-user-store/

这是我的deployment.toml文件配置-

[server]
hostname = "localhost"
node_ip = "127.0.0.1"
base_path = "https://$ref{server.hostname}:${carbon.management.port}"

[super_admin]
username = "admin"
password = "admin"
create_admin_account = true

[user_store]
type = "database"
TenantManager="org.wso2.carbon.user.core.tenant.JDBCTenantManager"
ReadOnly=false
ReadGroups=true
WriteGroups=true

[database.user]
url = "jdbc:mysql://localhost:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"
driver = "com.mysql.jdbc.Driver"

[realm_manager]
data_source = "WSO2USER_DB"

[database.carbon_db]
type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"

[database.identity_db]

type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"

[database.shared_db]
type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"

[keystore.primary]
name = "wso2carbon.jks"
password = "wso2carbon"

并且更改没有反射(reflect)在 WSO2 控制台中,它仍然显示 H2 数据库 - enter image description here

最佳答案

Wso2 Identity 5.9.0 separates its databases into 3 parts as IDENTITY_DB, CARBON_DB, SHARED_DB. You can read about what they handle in 

https://is.docs.wso2.com/en/5.9.0/setup/changing-to-mysql/ this documentation. 

From the above 3 databases, CARBON_DB cannot be pointed to another database type other than H2. CARBON_DB contains internal information and you will not have a requirement to change its database source. 

因此将以下配置添加到deployment.toml中是没有用的。

[database.carbon_db]
type = "mysql"
url= "jdbc:mysql://127.0.0.1:3306/regdb?useSSL=false"
username = "regadmin"
password = "regadmin"

在管理控制台中,它显示了 CARBON_DB 位置,该位置按预期位于 H2 中。建议在生产环境中将嵌入式 LDAP 用户存储更改为其他内容。您可以在此处将其指向 JDBC、LDAP 或 Active Directory 用户存储。

关于jdbc - 我正在尝试使用 wso2 中的 MySQL 5.9.0 更改我的注册表数据库并按照步骤操作,但它没有反射(reflect)在控制台中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59151086/

相关文章:

java - JPA 与 JDBC、存储过程和 Co. 或如何说服老派程序员尝试 ORM?

java - 在jdbc中调用存储过程

postgresql - 在postgres sql中将毫秒转换为纪元或长的函数

wso2-data-services-server - 无法使用 WGET 下载 WSO2 DSS 3.0.1

postgresql - 错误 : The column index is out of range: 1, 列数:0

java - Spring Jdbc绑定(bind)java.sql.timestamp到oracle日期问题

java - JDBC模板更新查询错误

wso2 - 在 WSO2 ESB 和 IDS 之间共享注册表和用户存储

wso2 - RelayUtils 在 wso2esb 中构建 Passthrough 流时出错

java.lang.NoClassDefFoundError : org/apache/axiom/om/OMNode