gpt4 book ai didi

mysql - 来自 NDBCLUSTER 的错误 4239 'Trigger with given name already exists'

转载 作者:可可西里 更新时间:2023-11-01 08:47:28 24 4
gpt4 key购买 nike

我们正在运行 MySQL 集群版本:

mysql> SELECT VERSION();
+------------------------------+
| VERSION() |
+------------------------------+
| 5.6.15-ndb-7.3.4-cluster-gpl |
+------------------------------+

尝试创建一个表

CREATE TABLE xy (
xa VARCHAR(36) NOT NULL DEFAULT '',
xb VARCHAR(255) NOT NULL,
xc TIMESTAMP NOT NULL,
xd VARCHAR(36) DEFAULT NULL,
xe VARCHAR(36) DEFAULT NULL,
xf VARCHAR(255) DEFAULT NULL,
xg VARCHAR(255) DEFAULT NULL,
xh TEXT,
xi BIGINT(20) DEFAULT NULL,
xj VARCHAR(255) DEFAULT NULL,
xk VARCHAR(255) DEFAULT NULL,
xl VARCHAR(255) DEFAULT NULL,
xz VARCHAR(255) DEFAULT NULL,
xy VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (xa)
) engine=ndb;

带给我(使用命令行直接输入):

ERROR 1296 (HY000): Got error 4239 'Trigger with given name already exists' from NDBCLUSTER

并通过文件:

ERROR 1296 (HY000) at line 8: Got error 4239 'Trigger with given name already exists' from NDBCLUSTER

但是没有mysql触发器:

mysql> SHOW triggers;
Empty set (0.00 sec)

没有表格:

mysql> show tables;
Empty set (0.01 sec)

有人知道吗?

最佳答案

好的 - 我们知道了!

config.ini 中的 MaxNoOfTriggers已经达到。

来自Official documentation -> MaxNoOfTriggers :

Internal update, insert, and delete triggers are allocated for each unique hash index. (This means that three triggers are created for each unique hash index.) However, an ordered index requires only a single trigger object. Backups also use three trigger objects for each normal table in the cluster.

Replication between clusters also makes use of internal triggers.

This parameter sets the maximum number of trigger objects in the cluster.

The default value is 768.

关于mysql - 来自 NDBCLUSTER 的错误 4239 'Trigger with given name already exists',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24242313/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com