我的编程空间,编程开发者的网络收藏夹
学习永远不晚

MySQL Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY0

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

MySQL Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY0

文档解释

Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY000

Message: On a Group Replication channel, setting REQUIRE_TABLE_PRIMARY_KEY_CHECK to ‘GENERATE’ is not allowed.

错误说明:

ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR 错误代码(Error number)4155,SQLSTATE: HY000,是MySQL服务器出现的一个错误,表示需要目标表有一个满足约束条件的主键,并且会正确地建立可以生成关键字外键约束的信息。

常见案例

这种错误一般是由在使用ALTER TABLE指令重新设置表结构时出现。比如,试图将某字段设置为主键,但是该字段实际上并未满足主键的唯一性要求,或者是在进行外键约束时,由于没有正确确定主键,无法形成约束条件。

解决方法:

(1)确认目标表的主键已经被设置:可以在表的结构中观察到相应的`PRIMARY KEY`。

(2)确认主键满足唯一性:如果表中的数据已经有重复,则可以使用`ALTER TABLE`构件进行删除,并添加`UNIQUE KEY`作为保证主键唯一性的约束条件。

(3)检查建立外键约束时是否正确:在建立外键约束时,应注意引用的主表已经形成主键,以及当前表[被引用表]的外键字段是否满足唯一性,以及同时引用的是否是同一个主表的主键。

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

MySQL Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY0

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

MySQL Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY0

文档解释Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY000Message: On a Group
MySQL Error number: 4155; Symbol: ER_REQUIRE_TABLE_PRIMARY_KEY_CHECK_GENERATE_WITH_GR; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3925; Symbol: ER_CLIENT_PRIVILEGE_CHECKS_USER_CANNOT_BE_ANONYMOUS; SQLSTATE: HY0

文档解释Error number: 3925; Symbol: ER_CLIENT_PRIVILEGE_CHECKS_USER_CANNOT_BE_ANONYMOUS; SQLSTATE: HY000Message:
MySQL Error number: 3925; Symbol: ER_CLIENT_PRIVILEGE_CHECKS_USER_CANNOT_BE_ANONYMOUS; SQLSTATE: HY0
2023-11-05

MySQL Error number: 4098; Symbol: ER_WARN_CANNOT_SECURELY_PERSIST_SENSITIVE_VARIABLES; SQLSTATE: HY0

文档解释Error number: 4098; Symbol: ER_WARN_CANNOT_SECURELY_PERSIST_SENSITIVE_VARIABLES; SQLSTATE: HY000Message: SENSITIVE
MySQL Error number: 4098; Symbol: ER_WARN_CANNOT_SECURELY_PERSIST_SENSITIVE_VARIABLES; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3809; Symbol: ER_BINLOG_MASTER_KEY_ROTATION_FAIL_TO_REENCRYPT_LOG; SQLSTATE: HY0

文档解释Error number: 3809; Symbol: ER_BINLOG_MASTER_KEY_ROTATION_FAIL_TO_REENCRYPT_LOG; SQLSTATE: HY000Message: %s. A new
MySQL Error number: 3809; Symbol: ER_BINLOG_MASTER_KEY_ROTATION_FAIL_TO_REENCRYPT_LOG; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3042; Symbol: ER_BOOST_GEOMETRY_SELF_INTERSECTION_POINT_EXCEPTION; SQLSTATE: HY0

文档解释Error number: 3042; Symbol: ER_BOOST_GEOMETRY_SELF_INTERSECTION_POINT_EXCEPTION; SQLSTATE: HY000Message: Analysis
MySQL Error number: 3042; Symbol: ER_BOOST_GEOMETRY_SELF_INTERSECTION_POINT_EXCEPTION; SQLSTATE: HY0
2023-11-04

MySQL Error number: 3097; Symbol: ER_GROUP_REPLICATION_COMMUNICATION_LAYER_JOIN_ERROR; SQLSTATE: HY0

文档解释Error number: 3097; Symbol: ER_GROUP_REPLICATION_COMMUNICATION_LAYER_JOIN_ERROR; SQLSTATE: HY000Message: The START
MySQL Error number: 3097; Symbol: ER_GROUP_REPLICATION_COMMUNICATION_LAYER_JOIN_ERROR; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3920; Symbol: ER_CHANGE_MASTER_WRONG_COMPRESSION_ALGORITHM_CLIENT; SQLSTATE: HY0

文档解释Error number: 3920; Symbol: ER_CHANGE_MASTER_WRONG_COMPRESSION_ALGORITHM_CLIENT; SQLSTATE: HY000Message: Invalid
MySQL Error number: 3920; Symbol: ER_CHANGE_MASTER_WRONG_COMPRESSION_ALGORITHM_CLIENT; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3671; Symbol: ER_PASSWORD_EXPIRATION_NOT_SUPPORTED_BY_AUTH_METHOD; SQLSTATE: HY0

文档解释Error number: 3671; Symbol: ER_PASSWORD_EXPIRATION_NOT_SUPPORTED_BY_AUTH_METHOD; SQLSTATE: HY000Message: The
MySQL Error number: 3671; Symbol: ER_PASSWORD_EXPIRATION_NOT_SUPPORTED_BY_AUTH_METHOD; SQLSTATE: HY0
2023-11-05

MySQL Error number: 3745; Symbol: ER_TEMP_TABLE_PREVENTS_SWITCH_SESSION_BINLOG_FORMAT; SQLSTATE: HY0

文档解释Error number: 3745; Symbol: ER_TEMP_TABLE_PREVENTS_SWITCH_SESSION_BINLOG_FORMAT; SQLSTATE: HY000Message: Changing
MySQL Error number: 3745; Symbol: ER_TEMP_TABLE_PREVENTS_SWITCH_SESSION_BINLOG_FORMAT; SQLSTATE: HY0
2023-11-05

MySQL Error number: 4013; Symbol: ER_CANT_USE_ANONYMOUS_TO_GTID_WITH_GTID_MODE_NOT_ON; SQLSTATE: HY0

文档解释Error number: 4013; Symbol: ER_CANT_USE_ANONYMOUS_TO_GTID_WITH_GTID_MODE_NOT_ON; SQLSTATE: HY000Message:
MySQL Error number: 4013; Symbol: ER_CANT_USE_ANONYMOUS_TO_GTID_WITH_GTID_MODE_NOT_ON; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY0

文档解释Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY000Message: Error on
MySQL Error number: MY-011637; Symbol: ER_GRP_RPL_FAILED_TO_INIT_COMMUNICATION_ENGINE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY0

文档解释Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY000Message: Cannot
MySQL Error number: MY-013877; Symbol: ER_IB_MSG_LOG_UPGRADE_FLUSH_FAILED__UNEXPECTED; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY0

文档解释Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY000Message: Slave I/O
MySQL Error number: MY-010564; Symbol: ER_RPL_SLAVE_IO_THREAD_CANT_REGISTER_ON_MASTER; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY0

文档解释Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY000Message: Failed to
MySQL Error number: MY-013282; Symbol: ER_SERVER_RPL_ENCRYPTION_FAILED_TO_ROTATE_LOGS; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY0

文档解释Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY000Message: This
MySQL Error number: MY-013737; Symbol: ER_GRP_RPL_MEMBER_ACTION_DEFAULT_CONFIGURATION; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0

文档解释Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY000Message: Table name
MySQL Error number: MY-013523; Symbol: ER_TABLE_NAME_IN_UPPER_CASE_NOT_ALLOWED_FOR_FK; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY0

文档解释Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY000Message: RETAIN
MySQL Error number: MY-013294; Symbol: ER_WARNING_RETAIN_CURRENT_PASSWORD_CLAUSE_VOID; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY0

文档解释Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY000Message: Timeout
MySQL Error number: MY-013659; Symbol: ER_GRP_RPL_TIMEOUT_RECEIVED_VC_LEAVE_ON_REJOIN; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011601; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_IN_ERROR_STATE; SQLSTATE: HY0

文档解释Error number: MY-011601; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_IN_ERROR_STATE; SQLSTATE: HY000Message:
MySQL Error number: MY-011601; Symbol: ER_GRP_RPL_CANNOT_EXECUTE_TRANS_IN_ERROR_STATE; SQLSTATE: HY0
2023-11-05

MySQL Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY0

文档解释Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY000Message: Group
MySQL Error number: MY-011682; Symbol: ER_GRP_RPL_SLAVE_PRESERVE_COMMIT_ORDER_NOT_SET; SQLSTATE: HY0
2023-11-05

编程热搜

目录