SET foreign_key_checks=0; truncate table ailiyuninfo_serverinfo; truncate table opsweb_hostprivileges; truncate table opsweb_hostprivileges_alias; SET foreign_key_checks=1;
mysql临时取消外键约束方法
原文:http://blog.51cto.com/kexiaoke/2141020