This error also occurs if you are relating columns of different types, eg. int in the source table and BigInt in the destination table.
More Related Contents:
- Calculate date range between two rows
- MySQL Creating tables with Foreign Keys giving errno: 150
- MySQL Error 1215: Cannot add foreign key constraint
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- MySQL foreign key constraints, cascade delete
- How do I see all foreign keys to a table or column?
- MySQL Cannot Add Foreign Key Constraint
- Error Code: 2013. Lost connection to MySQL server during query
- How to find all tables that have foreign keys that reference particular table.column and have values for those foreign keys?
- Required to join 2 tables with their FKs in a 3rd table
- MySQL Foreign Key Error 1005 errno 150 primary key as foreign key
- MySQL error code: 1175 during UPDATE in MySQL Workbench
- Basics of Foreign Keys in MySQL?
- MySQL – Conditional Foreign Key Constraints
- How do I use on delete cascade in mysql?
- Add Foreign Key to existing table
- How to change the foreign key referential action? (behavior)
- How to connect mysql workbench to running mysql inside docker?
- MySQL Workbench: How to keep the connection alive
- How to create relationships in MySQL
- How to truncate a foreign key constrained table?
- MySQL InnoDB foreign key between different databases
- MySQL Removing Some Foreign keys
- Show constraints on tables command
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Foreign key constraints: When to use ON UPDATE and ON DELETE
- Accessing a mysql database from external host/ip? (ie: mysql workbench)
- “General error: 1005 Can’t create table” Using Laravel Schema Build and Foreign Keys
- Error Code: 1062. Duplicate entry ‘1’ for key ‘PRIMARY’
- Errno 121, duplicate key on write or update?