Check that all your constraints are really spelled out correctly, also check that there’s not any other tables that uses the constraint names FK_userId or FK_blogId
More Related Contents:
- Error Code: 1005. Can’t create table ‘…’ (errno: 150)
- MySQL “ERROR 1005 (HY000): Can’t create table ‘foo.#sql-12c_4’ (errno: 150)”
- MySQL Creating tables with Foreign Keys giving errno: 150
- MySQL Error 1215: Cannot add foreign key constraint
- MySQL foreign key constraints, cascade delete
- How do I see all foreign keys to a table or column?
- MySQL Cannot Add Foreign Key Constraint
- 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
- Can a foreign key reference a non-unique index?
- MySQL – Conditional Foreign Key Constraints
- How do I use on delete cascade in mysql?
- MySql Error 150 – Foreign keys
- Add Foreign Key to existing table
- How to change the foreign key referential action? (behavior)
- How to create relationships in MySQL
- How to truncate a foreign key constrained table?
- MySQL Removing Some Foreign keys
- Is it possible to reference one column as multiple foreign keys?
- How to insert values in table with foreign key using MySQL?
- Show constraints on tables command
- Meaning of “n:m” and “1:n” in database design
- MySQL Errno 150
- How to use django models with foreign keys in different DBs?
- How to remove constraints from my MySQL table?
- MySQL. Can’t create table errno 150
- MySQL DROP all tables, ignoring foreign keys
- “General error: 1005 Can’t create table” Using Laravel Schema Build and Foreign Keys
- MySQL Relationships