错误提示:“#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘T FOREIGN_KEY_CHECKS = 0’ at line 1”
经查询,这个是 mysql 启动和关闭外键约束的方法,去掉即可。
编辑数据库文件:
//去掉此行
SET FOREIGN_KEY_CHECKS = 0;
//去掉此行
SET FOREIGN_KEY_CHECKS = 1;
然后重新导入即可。
原创文章,作者:A·大饼哥,如若转载,请注明出处:https://b.sanbangyun.com/20240218/1.shtml