I want to create a references to foreign table. but i\'m getting the following error:
query:
CREATE TABLE category_ids (id INT, post_id INT,
Only InnoDB supports Foreign keys, MyISAM doesn't. Even if it would, you cannot create relations between tables of different type.
Therefore you need to convert the table post into InnoDB. ALTER TABLE post ENGINE = InnoDB;
post
ALTER TABLE post ENGINE = InnoDB;