您好,欢迎访问一九零五行业门户网

MySQL设置foreign_key_checks_MySQL

报错:
c:/xampp/htdocs/yun_course>php app/console doctrine:schema:update --forceupdating database schema... [doctrine/dbal/dbalexception] an exception occurred while executing 'alter table cc_forum_post add constr aint fk_7226c324ceb06035 foreign key (fk_created_by_user_id) references use r (id) on delete set null': sqlstate[hy000]: general error: 1215 cannot add foreign key constraint [pdoexception] sqlstate[hy000]: general error: 1215 cannot add foreign key constraint
在mysql>输入set @@global.foreign_key_checks = 0 ;
其它类似信息

推荐信息