SQL查询:
-- Constraints for dumped tables
-- Constraints for table `comment`
ALTER TABLE `comment`
ADD CONSTRAINT `comment_ibfk_1`
FOREIGN KEY ( `user_id` )
REFERENCES `user` ( `user_id` ),
ADD CONSTRAINT `comment_ibfk_2`
FOREIGN KEY ( `post_id` )
REFERENCES `post` ( `post_id` );
MySQL说:文档
1005 - 无法创建表akintltd_trial。#sql-aef76_8a1a0d(错误号:150"外键约束形成错误")(详情......)