wso2 是 api 集群 mysql 的管理器数据库配置
wso2 is and api manager database configuration for clustered mysql
我正在尝试使用 HA mysql (v8.0) 配置将 IS 设置为密钥管理器 (v3.0.0) 和 api 管理器 (v3.0.0)。 运行 sql 用于创建数据库的脚本时,我从 mysql 中收到有关带有 ON DELETE CASCADE 的外键条目的错误,mysql 不支持群组复制开启。如果我只能复制 IS 和 API 管理器而不能复制 mysql,我如何才能创建完全 HA 设置?有解决方法吗?
您可以用触发器代替级联操作。这是一个 Oracle 示例。你可以用 MySQL.
做同样的事情
CREATE or REPLACE TRIGGER TRG_DEL_AM_APPLICATION
BEFORE DELETE
on AM_APPLICATION
FOR EACH ROW
BEGIN
DELETE FROM AM_SUBSCRIPTION AMSU WHERE AMSU.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_KEY_MAPPING AMKM WHERE AMKM.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_REGISTRATION AMAR WHERE AMAR.APP_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_GROUP_MAPPING AMGM WHERE AMGM.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_ATTRIBUTES AAA WHERE AAA.APPLICATION_ID = :OLD.APPLICATION_ID;
END;
参考:
[2] https://docs.oracle.com/goldengate/1212/gg-winux/GWUAD/wu_bidirectional.htm#GWUAD287
我正在尝试使用 HA mysql (v8.0) 配置将 IS 设置为密钥管理器 (v3.0.0) 和 api 管理器 (v3.0.0)。 运行 sql 用于创建数据库的脚本时,我从 mysql 中收到有关带有 ON DELETE CASCADE 的外键条目的错误,mysql 不支持群组复制开启。如果我只能复制 IS 和 API 管理器而不能复制 mysql,我如何才能创建完全 HA 设置?有解决方法吗?
您可以用触发器代替级联操作。这是一个 Oracle 示例。你可以用 MySQL.
做同样的事情CREATE or REPLACE TRIGGER TRG_DEL_AM_APPLICATION
BEFORE DELETE
on AM_APPLICATION
FOR EACH ROW
BEGIN
DELETE FROM AM_SUBSCRIPTION AMSU WHERE AMSU.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_KEY_MAPPING AMKM WHERE AMKM.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_REGISTRATION AMAR WHERE AMAR.APP_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_GROUP_MAPPING AMGM WHERE AMGM.APPLICATION_ID = :OLD.APPLICATION_ID;
DELETE FROM AM_APPLICATION_ATTRIBUTES AAA WHERE AAA.APPLICATION_ID = :OLD.APPLICATION_ID;
END;
参考:
[2] https://docs.oracle.com/goldengate/1212/gg-winux/GWUAD/wu_bidirectional.htm#GWUAD287