Created
November 28, 2017 11:53
-
-
Save 6ui11em/5fed9709ba4502153d039ad1bd4d7b75 to your computer and use it in GitHub Desktop.
Disable / enable foreig keys #mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET foreign_key_checks = 0; | |
SET foreign_key_checks = 1; | |
# GLOBAL DISABLE | |
SET GLOBAL FOREIGN_KEY_CHECKS=0; | |
SET GLOBAL FOREIGN_KEY_CHECKS=1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment