Skip to content

Error Code: 3750. Unable to create or change a table without a primary key #13256

@izturn

Description

@izturn

Describe the bug
When executing mysql-schema.sql, an error occurs that causes the script to fail.
After debugging, I found that the root cause is that the roles and permissions tables do not have primary keys defined.

The error message is as follows:

Error Code: 3750. Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before changing this setting.

Please consider adding primary keys to the role and permission tables to resolve this issue.

ps: i will send a pr to fix this

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementCategory issues or prs related to enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions