#1005 - Can't create table 'table_name' (errno: 150)
问题 here is my tables: DROP TABLE IF EXISTS `tbl_comments`; CREATE TABLE IF NOT EXISTS `tbl_comments` ( `id` int(11) NOT NULL auto_increment, `topic_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `text` text NOT NULL, `create_dt` datetime NOT NULL, `update_dt` timestamp NULL default CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `topic_id_2` (`topic_id`), KEY `user_id` (`user_id`), CONSTRAINT `tbl_comments_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `tbl_users` (`id`), CONSTRAINT `tbl_comments_ibfk